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
This commit is contained in:
@@ -171,7 +171,8 @@ wxPoint wxFrameBase::GetClientAreaOrigin() const
|
|||||||
|
|
||||||
void wxFrameBase::SendSizeEvent()
|
void wxFrameBase::SendSizeEvent()
|
||||||
{
|
{
|
||||||
wxSizeEvent event( GetSize(), GetId() );
|
const wxSize size = GetSize();
|
||||||
|
wxSizeEvent event( size, GetId() );
|
||||||
event.SetEventObject( this );
|
event.SetEventObject( this );
|
||||||
GetEventHandler()->AddPendingEvent( event );
|
GetEventHandler()->AddPendingEvent( event );
|
||||||
|
|
||||||
@@ -179,8 +180,12 @@ void wxFrameBase::SendSizeEvent()
|
|||||||
// SendSizeEvent is typically called when a toolbar is shown
|
// SendSizeEvent is typically called when a toolbar is shown
|
||||||
// or hidden, but sending the size event alone is not enough
|
// or hidden, but sending the size event alone is not enough
|
||||||
// to trigger a full layout.
|
// to trigger a full layout.
|
||||||
((wxFrame*)this)->GtkOnSize();
|
((wxFrame*)this)->GtkOnSize(
|
||||||
#endif
|
#ifndef __WXGTK20__
|
||||||
|
0, 0, size.x, size.y
|
||||||
|
#endif // __WXGTK20__
|
||||||
|
);
|
||||||
|
#endif // __WXGTK__
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user