LCL-GTK3: Make AnchorDocking display dock names properly. Issue #40341, patch by Anton Kavalenka.

This commit is contained in:
Juha 2024-07-27 13:14:14 +03:00
parent 987f140c91
commit 1393bae4a7

View File

@ -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;