From: Robert Roebling Date: Mon, 21 Aug 2006 23:13:42 +0000 (+0000) Subject: Don't emit bogus size events if a child window X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/89579a60d7ba7da32777647ad7647af69ec4e687 Don't emit bogus size events if a child window 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 --- diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index 7683d527db..19cacb5d83 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -190,9 +190,6 @@ static void wxInsertChildInFrame( wxFrame* parent, wxWindow* child ) child->m_width, child->m_height ); } - - // Resize on OnInternalIdle - parent->GtkUpdateSize(); } // ---------------------------------------------------------------------------- diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 467d67ab53..0c8752c927 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -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(); } // ----------------------------------------------------------------------------