/////////////////////////////////////////////////////////////////////////////
-// Name: gtk/bmpbuttn.cpp
+// Name: src/gtk/bmpbuttn.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#include "wx/defs.h"
-
#if wxUSE_BMPBUTTON
#include "wx/bmpbuttn.h"
class wxBitmapButton;
-//-----------------------------------------------------------------------------
-// idle system
-//-----------------------------------------------------------------------------
-
-extern void wxapp_install_idle_handler();
-extern bool g_isIdle;
-
//-----------------------------------------------------------------------------
// data
//-----------------------------------------------------------------------------
void wxBitmapButton::DoApplyWidgetStyle(GtkRcStyle *style)
{
- if ( !BUTTON_CHILD(m_widget) )
+ if (!GTK_BIN(m_widget)->child)
return;
wxButton::DoApplyWidgetStyle(style);
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
}
#endif // wxUSE_BMPBUTTON
-