]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/toplevel.cpp
reSWIGged
[wxWidgets.git] / src / gtk / toplevel.cpp
index 507e47463a63236a83f61dac7bc08230c9d5bfbd..d2a5bdd6b12d45e12168caee3a2795e8aaaf9da5 100644 (file)
@@ -936,10 +936,17 @@ void wxTopLevelWindowGTK::Maximize(bool maximize)
 
 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()