]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/frame.cpp
more fixes, printing works quite fine now
[wxWidgets.git] / src / gtk1 / frame.cpp
index fbb256de87b16597fbbb798dc1a141086ce93cb1..5864db957f4b096e28b58082f30ccb54074e3e48 100644 (file)
@@ -26,7 +26,7 @@
 // constants
 //-----------------------------------------------------------------------------
 
-const int wxMENU_HEIGHT    = 28;
+const int wxMENU_HEIGHT    = 30;
 const int wxSTATUS_HEIGHT  = 25;
 
 //-----------------------------------------------------------------------------
@@ -135,7 +135,10 @@ bool wxFrame::Create( wxWindow *parent, wxWindowID id, const wxString &title,
 
   m_title = title;
 
-  m_widget = gtk_window_new( GTK_WINDOW_TOPLEVEL );
+  GtkWindowType win_type = GTK_WINDOW_TOPLEVEL;
+  if (style & wxSIMPLE_BORDER) win_type = GTK_WINDOW_POPUP;
+  
+  m_widget = gtk_window_new( win_type );
   if ((size.x != -1) && (size.y != -1))
     gtk_widget_set_usize( m_widget, m_width, m_height );
   if ((pos.x != -1) && (pos.y != -1))