#include "gtk/gtk.h"
#include "wx/gtk/win_gtk.h"
#include "gdk/gdkkeysyms.h"
+#include "gdk/gdkx.h"
//-----------------------------------------------------------------------------
// constants
decor |= GDK_DECOR_RESIZEH;
}
-
gdk_window_set_decorations( win->m_widget->window, (GdkWMDecoration)decor);
gdk_window_set_functions( win->m_widget->window, (GdkWMFunction)func);
m_needParent = FALSE;
- PreCreation( parent, id, pos, size, style, name );
+ if (!PreCreation( parent, pos, size ) ||
+ !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
+ {
+ wxFAIL_MSG( _T("wxFrame creation failed") );
+ return FALSE;
+ }
m_title = title;
gdk_window_set_icon( m_widget->window, (GdkWindow *) NULL, icon.GetPixmap(), bm );
}
+void wxFrame::Maximize(bool WXUNUSED(maximize))
+{
+}
+
+void wxFrame::Restore()
+{
+}
+
+void wxFrame::Iconize( bool iconize )
+{
+ if (iconize)
+ {
+ XIconifyWindow( GDK_WINDOW_XDISPLAY( m_widget->window ),
+ GDK_WINDOW_XWINDOW( m_widget->window ),
+ DefaultScreen( GDK_DISPLAY() ) );
+ }
+}
+
+bool wxFrame::IsIconized() const
+{
+ return FALSE;
+}