mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-12 02:18:44 +02:00
LCL-GTK3: Make AnchorDocking display dock names properly. Issue #40341, patch by Anton Kavalenka.
This commit is contained in:
parent
987f140c91
commit
1393bae4a7
@ -7571,6 +7571,7 @@ begin
|
||||
FWidget:=Result;
|
||||
FWidget^.set_events(GDK_DEFAULT_EVENTS_MASK);
|
||||
gtk_widget_realize(Result);
|
||||
Title:=Params.Caption;
|
||||
decor:=decoration_flags(AForm);
|
||||
gdk_window_set_decorations(Result^.window, decor);
|
||||
gtk_window_set_decorated(PGtkWindow(Result),(decor <> []));
|
||||
@ -7639,11 +7640,18 @@ end;
|
||||
|
||||
function TGtk3Window.getText: String;
|
||||
begin
|
||||
Result := Title;
|
||||
// query widget
|
||||
Result:=Title;
|
||||
// return cached
|
||||
if Result='' then
|
||||
Result := inherited GetText;
|
||||
end;
|
||||
|
||||
procedure TGtk3Window.setText(const AValue: String);
|
||||
begin
|
||||
// set cached text
|
||||
inherited SetText(AValue);
|
||||
// set widget text
|
||||
Title := AValue;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user