#include "gdk/gdk.h"
#include "gtk/gtk.h"
+//-----------------------------------------------------------------------------
+// idle system
+//-----------------------------------------------------------------------------
+
+extern void wxapp_install_idle_handler();
+extern bool g_isIdle;
+
//-----------------------------------------------------------------------------
// data
//-----------------------------------------------------------------------------
static void gtk_checkbox_clicked_callback( GtkWidget *WXUNUSED(widget), wxCheckBox *cb )
{
+ if (g_isIdle) wxapp_install_idle_handler();
+
if (!cb->HasVMT()) return;
if (cb->m_blockFirstEvent)
PostCreation();
- gtk_widget_realize( m_widgetLabel );
- gtk_widget_realize( m_widgetCheckbox );
-
SetBackgroundColour( parent->GetBackgroundColour() );
SetForegroundColour( parent->GetForegroundColour() );
SetFont( parent->GetFont() );