]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/mdi.cpp
wxIMage accessors
[wxWidgets.git] / src / gtk1 / mdi.cpp
index 541afecfe8117131056a9abe2fdb1cef9b74b38c..3d8f9cd8e45fd97e402f7ac01ddd31afd8dd6e2f 100644 (file)
@@ -38,7 +38,8 @@ static void gtk_page_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation*
   if ((win->m_x == alloc->x) &&
       (win->m_y == alloc->y) &&
       (win->m_width == alloc->width) &&
-      (win->m_height == alloc->height))
+      (win->m_height == alloc->height) &&
+      (win->m_sizeSet))
   {
     return;
   }
@@ -358,7 +359,9 @@ bool wxMDIClientWindow::CreateClient( wxMDIParentFrame *parent, long style )
 
   gtk_notebook_set_scrollable( GTK_NOTEBOOK(m_widget), 1 );
 
-  gtk_myfixed_put( GTK_MYFIXED(m_parent->m_wxwindow), m_widget, m_x, m_y );
+  m_parent->AddChild( this );
+
+  (m_parent->m_insertCallback)( m_parent, this );
   
   PostCreation();