]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/frame.cpp
Mac compile fixes
[wxWidgets.git] / src / gtk / frame.cpp
index ab11b08c03045c158ef76d544b3d703945d3875f..e35a025f7a0a2cacf700dc346dc42d28956d7f9e 100644 (file)
 const int wxSTATUS_HEIGHT  = 25;
 const int wxPLACE_HOLDER   = 0;
 
-// ----------------------------------------------------------------------------
-// idle system
-// ----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
 // ----------------------------------------------------------------------------
 // event tables
 // ----------------------------------------------------------------------------
@@ -490,9 +483,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