X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9fa72bd2a637cee761c56e2ce61cec3e43c62765..2e98aa124386e26c78ca725430c0b0c692db9fc2:/src/gtk/bmpbuttn.cpp diff --git a/src/gtk/bmpbuttn.cpp b/src/gtk/bmpbuttn.cpp index 5f1cacba55..eab91a19de 100644 --- a/src/gtk/bmpbuttn.cpp +++ b/src/gtk/bmpbuttn.cpp @@ -24,13 +24,6 @@ class wxBitmapButton; -//----------------------------------------------------------------------------- -// idle system -//----------------------------------------------------------------------------- - -extern void wxapp_install_idle_handler(); -extern bool g_isIdle; - //----------------------------------------------------------------------------- // data //----------------------------------------------------------------------------- @@ -192,7 +185,7 @@ void wxBitmapButton::SetLabel( const wxString &label ) void wxBitmapButton::DoApplyWidgetStyle(GtkRcStyle *style) { - if ( !BUTTON_CHILD(m_widget) ) + if (!GTK_BIN(m_widget)->child) return; wxButton::DoApplyWidgetStyle(style); @@ -220,7 +213,7 @@ void wxBitmapButton::OnSetBitmap() GdkBitmap *mask = (GdkBitmap *) NULL; if (the_one.GetMask()) mask = the_one.GetMask()->GetBitmap(); - GtkWidget *child = BUTTON_CHILD(m_widget); + GtkWidget *child = GTK_BIN(m_widget)->child; if (child == NULL) { // initial bitmap @@ -284,4 +277,3 @@ void wxBitmapButton::EndSelect() } #endif // wxUSE_BMPBUTTON -