X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34c1f23146462e75f41e26c84709348b7cf42761..7b4fde8255e2c5495b5c7c2b3234d19ac8c1e7cf:/src/gtk/frame.cpp?ds=sidebyside diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index ab11b08c03..d0ade77e6d 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -490,9 +490,12 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), gtk_pizza_set_size( GTK_PIZZA(m_wxwindow), m_frameStatusBar->m_widget, xx, yy, ww, hh ); - gtk_widget_queue_draw (m_frameStatusBar->m_widget); - // FIXME: Do we really want to force an immediate redraw? - gdk_window_process_updates (m_frameStatusBar->m_widget->window, TRUE); + if (GTK_WIDGET_DRAWABLE (m_frameStatusBar->m_widget)) + { + gtk_widget_queue_draw (m_frameStatusBar->m_widget); + // FIXME: Do we really want to force an immediate redraw? + gdk_window_process_updates (m_frameStatusBar->m_widget->window, TRUE); + } } #endif // wxUSE_STATUSBAR