GTK2: Add a GTK_WIDGET_DRAWABLE check to the gtk_widget_draw replacement to make it call identical worker functions
as before, and not spew warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -490,10 +490,13 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y),
|
|||||||
gtk_pizza_set_size( GTK_PIZZA(m_wxwindow),
|
gtk_pizza_set_size( GTK_PIZZA(m_wxwindow),
|
||||||
m_frameStatusBar->m_widget,
|
m_frameStatusBar->m_widget,
|
||||||
xx, yy, ww, hh );
|
xx, yy, ww, hh );
|
||||||
|
if (GTK_WIDGET_DRAWABLE (m_frameStatusBar->m_widget))
|
||||||
|
{
|
||||||
gtk_widget_queue_draw (m_frameStatusBar->m_widget);
|
gtk_widget_queue_draw (m_frameStatusBar->m_widget);
|
||||||
// FIXME: Do we really want to force an immediate redraw?
|
// FIXME: Do we really want to force an immediate redraw?
|
||||||
gdk_window_process_updates (m_frameStatusBar->m_widget->window, TRUE);
|
gdk_window_process_updates (m_frameStatusBar->m_widget->window, TRUE);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif // wxUSE_STATUSBAR
|
#endif // wxUSE_STATUSBAR
|
||||||
|
|
||||||
m_sizeSet = true;
|
m_sizeSet = true;
|
||||||
|
Reference in New Issue
Block a user