mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 17:21:03 +02:00
gtk2 intf: isiconic: check if window is not nil
git-svn-id: trunk@24063 -
This commit is contained in:
parent
b3eed82c63
commit
cbbac5d4f9
@ -6911,7 +6911,9 @@ begin
|
|||||||
{$ifdef gtk1}
|
{$ifdef gtk1}
|
||||||
Result := GDK_WINDOW_GET_MINIMIZED(PGdkWindowPrivate(PgtkWidget(GtkWindow)^.Window));
|
Result := GDK_WINDOW_GET_MINIMIZED(PGdkWindowPrivate(PgtkWidget(GtkWindow)^.Window));
|
||||||
{$else}
|
{$else}
|
||||||
Result := gdk_window_get_state(PGtkWidget(GtkWindow)^.Window) and GDK_WINDOW_STATE_ICONIFIED <> 0;
|
Result := (PGtkWidget(GtkWindow)^.Window<>nil)
|
||||||
|
and (gdk_window_get_state(PGtkWidget(GtkWindow)^.Window)
|
||||||
|
and GDK_WINDOW_STATE_ICONIFIED <> 0);
|
||||||
{$endif}
|
{$endif}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user