mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 08:00:24 +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}
|
||||
Result := GDK_WINDOW_GET_MINIMIZED(PGdkWindowPrivate(PgtkWidget(GtkWindow)^.Window));
|
||||
{$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}
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user