]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't emit bogus size events if a child window
authorRobert Roebling <robert@roebling.de>
Mon, 21 Aug 2006 23:13:42 +0000 (23:13 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 21 Aug 2006 23:13:42 +0000 (23:13 +0000)
    is inserted into a frame or dialog.
  I don't know why I wrote that non-sense back
    then, but wxMSW doesn't do it either.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/frame.cpp
src/gtk/toplevel.cpp

index 7683d527db656308c561db32dd264cc420bb75ff..19cacb5d83659444f53608ad78cbc8f2df99f9af 100644 (file)
@@ -190,9 +190,6 @@ static void wxInsertChildInFrame( wxFrame* parent, wxWindow* child )
                          child->m_width,
                          child->m_height );
     }
-
-    // Resize on OnInternalIdle
-    parent->GtkUpdateSize();
 }
 
 // ----------------------------------------------------------------------------
index 467d67ab53d7c4578b71e3982137224956e33970..0c8752c927c7748e888c5620114e2ffffe4d5e6d 100644 (file)
@@ -237,10 +237,10 @@ static void gtk_frame_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation*
     if ((win->m_width != alloc->width) || (win->m_height != alloc->height))
     {
 /*
-        wxPrintf( "OnSize from " );
+        wxPrintf( wxT("gtk_frame_size_callback from ") );
         if (win->GetClassInfo() && win->GetClassInfo()->GetClassName())
            wxPrintf( win->GetClassInfo()->GetClassName() );
-        wxPrintf( " %d %d %d %d\n", (int)alloc->x,
+        wxPrintf( wxT(" %d %d %d %d\n"), (int)alloc->x,
                                 (int)alloc->y,
                                 (int)alloc->width,
                                 (int)alloc->height );
@@ -435,9 +435,6 @@ static void wxInsertChildInTopLevelWindow( wxTopLevelWindowGTK* parent, wxWindow
                          child->m_width,
                          child->m_height );
     }
-
-    // resize on OnInternalIdle
-    parent->GtkUpdateSize();
 }
 
 // ----------------------------------------------------------------------------