/////////////////////////////////////////////////////////////////////////////
-// Name: wx/gtk/tglbtn.cpp
+// Name: src/gtk1/tglbtn.cpp
// Purpose: Definition of the wxToggleButton class, which implements a
// toggle button under wxGTK.
// Author: John Norris, minor changes by Axel Schlueter
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_TOGGLEBTN
+
#include "wx/tglbtn.h"
-#include "wx/button.h"
-#if wxUSE_TOGGLEBTN
+#ifndef WX_PRECOMP
+ #include "wx/button.h"
+#endif
-#include "wx/gtk/private.h"
+#include "wx/gtk1/private.h"
extern void wxapp_install_idle_handler();
extern bool g_isIdle;
wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, cb->GetId());
event.SetInt(cb->GetValue());
event.SetEventObject(cb);
- cb->GetEventHandler()->ProcessEvent(event);
+ cb->HandleWindowEvent(event);
}
}
-DEFINE_EVENT_TYPE(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)
+wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent );
// ------------------------------------------------------------------------
// wxToggleBitmapButton
{
if (!m_bitmap.Ok()) return;
- GdkBitmap *mask = (GdkBitmap *) NULL;
+ GdkBitmap *mask = NULL;
if (m_bitmap.GetMask()) mask = m_bitmap.GetMask()->GetBitmap();
GtkWidget *child = BUTTON_CHILD(m_widget);
}
#endif // wxUSE_TOGGLEBTN
-