X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d2a2b601b1994333886dff8f53d82a714c4042f..06ad863606966ceee6e7eea537f8d427f0d891a9:/src/gtk1/frame.cpp diff --git a/src/gtk1/frame.cpp b/src/gtk1/frame.cpp index 993bbbf75b..d21f976cc8 100644 --- a/src/gtk1/frame.cpp +++ b/src/gtk1/frame.cpp @@ -91,6 +91,10 @@ static gint gtk_frame_configure_callback( GtkWidget *WXUNUSED(widget), GdkEventC win->m_x = event->x; win->m_y = event->y; + wxMoveEvent mevent( wxPoint(win->m_x,win->m_y), win->GetId() ); + mevent.SetEventObject( win ); + win->GetEventHandler()->ProcessEvent( mevent ); + return FALSE; } @@ -101,7 +105,6 @@ static gint gtk_frame_configure_callback( GtkWidget *WXUNUSED(widget), GdkEventC BEGIN_EVENT_TABLE(wxFrame, wxWindow) EVT_SIZE(wxFrame::OnSize) EVT_CLOSE(wxFrame::OnCloseWindow) - EVT_IDLE(wxFrame::OnIdle) END_EVENT_TABLE() IMPLEMENT_DYNAMIC_CLASS(wxFrame,wxWindow) @@ -457,7 +460,7 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int height m_resizing = FALSE; } -void wxFrame::OnIdle(wxIdleEvent& WXUNUSED(event) ) +void wxFrame::OnInternalIdle() { if (!m_sizeSet) GtkOnSize( m_x, m_y, m_width, m_height ); @@ -542,7 +545,7 @@ void wxFrame::SetMenuBar( wxMenuBar *menuBar ) } } - if (m_sizeSet) GtkOnSize( m_x, m_y, m_width, m_height ); + m_sizeSet = FALSE; } wxMenuBar *wxFrame::GetMenuBar() const @@ -560,7 +563,7 @@ wxToolBar* wxFrame::CreateToolBar(long style, wxWindowID id, const wxString& nam GetChildren().DeleteObject( m_frameToolBar ); - if (m_sizeSet) GtkOnSize( m_x, m_y, m_width, m_height ); + m_sizeSet = FALSE; return m_frameToolBar; } @@ -583,7 +586,7 @@ wxStatusBar* wxFrame::CreateStatusBar( int number, long style, wxWindowID id, co m_frameStatusBar = OnCreateStatusBar( number, style, id, name ); - if (m_sizeSet) GtkOnSize( m_x, m_y, m_width, m_height ); + m_sizeSet = FALSE; return m_frameStatusBar; }