#include "wx/checkbox.h"
-#include "wx/gtk/private.h"
+#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// data
extern "C" {
static void gtk_checkbox_toggled_callback(GtkWidget *widget, wxCheckBox *cb)
{
- if (g_isIdle) wxapp_install_idle_handler();
-
if (!cb->m_hasVMT) return;
if (g_blockEventsOnDrag) return;
const wxValidator& validator,
const wxString &name )
{
- m_needParent = true;
m_blockEvent = false;
if (!PreCreation( parent, pos, size ) ||
{
wxCHECK_RET( m_widgetLabel != NULL, wxT("invalid checkbox") );
+ // save the label inside m_label in case user calls GetLabel() later
+ wxControl::SetLabel(label);
+
GTKSetLabelForLabel(GTK_LABEL(m_widgetLabel), label);
}