From 1c78eba4ff6587f8660c2a78867360c879978db7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 12 Jan 2008 19:52:08 +0000 Subject: [PATCH] compilation fix for wxGTK1 after r49740 (GtkOnSize() there needs size parameters) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/framecmn.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index b73d492b69..2b124b9a44 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -171,7 +171,8 @@ wxPoint wxFrameBase::GetClientAreaOrigin() const void wxFrameBase::SendSizeEvent() { - wxSizeEvent event( GetSize(), GetId() ); + const wxSize size = GetSize(); + wxSizeEvent event( size, GetId() ); event.SetEventObject( this ); GetEventHandler()->AddPendingEvent( event ); @@ -179,8 +180,12 @@ void wxFrameBase::SendSizeEvent() // SendSizeEvent is typically called when a toolbar is shown // or hidden, but sending the size event alone is not enough // to trigger a full layout. - ((wxFrame*)this)->GtkOnSize(); -#endif + ((wxFrame*)this)->GtkOnSize( +#ifndef __WXGTK20__ + 0, 0, size.x, size.y +#endif // __WXGTK20__ + ); +#endif // __WXGTK__ }