gtk2 intf: isiconic: check if window is not nil

git-svn-id: trunk@24063 -
This commit is contained in:
mattias 2010-03-17 14:05:08 +00:00
parent b3eed82c63
commit cbbac5d4f9

View File

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