mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
LCL-GTK2: Improve setting a shaped form. Issue #30385, patch from Anton Kavalenka.
git-svn-id: trunk@63897 -
This commit is contained in:
parent
2e27713e66
commit
a3272084cf
@ -4067,6 +4067,7 @@ function GetControlWindow(Widget: Pointer) : PGDKWindow;
|
||||
begin
|
||||
if Widget <> nil then
|
||||
begin
|
||||
gtk_widget_realize(Widget); // associate with window
|
||||
If not GTKWidgetIsA(PGTKWidget(Widget), GTK_Layout_Get_Type) then
|
||||
Result := PGTKWidget(Widget)^.Window
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user