win->m_width = alloc->width;
win->m_height = alloc->height;
- win->m_queuedFullRedraw = TRUE;
win->GtkUpdateSize();
}
}
bool wxTopLevelWindowGTK::IsMaximized() const
{
+#ifdef __WXGTK20__
+ if(!m_widget->window)
+ return false;
+
+ return gdk_window_get_state(m_widget->window) & GDK_WINDOW_STATE_MAXIMIZED;
+#else
// wxFAIL_MSG( _T("not implemented") );
// This is an approximation
return FALSE;
+#endif
}
void wxTopLevelWindowGTK::Restore()
{
-#ifdef __GTK20__
+#ifdef __WXGTK20__
// "Present" seems similar enough to "restore"
gtk_window_present( GTK_WINDOW( m_widget ) );
#else