]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/radiobox.cpp
controls sample tests a bit more
[wxWidgets.git] / src / gtk / radiobox.cpp
index 1f60b251b04ca8b3caceb083475583987887b966..e9ba1e8c5e2da7a42d9fc9cacbc07bd1442265f4 100644 (file)
 #include "gtk/gtk.h"
 #include "wx/gtk/win_gtk.h"
 
+//-----------------------------------------------------------------------------
+// idle system
+//-----------------------------------------------------------------------------
+
+extern void wxapp_install_idle_handler();
+extern bool g_isIdle;
+
 //-----------------------------------------------------------------------------
 // data
 //-----------------------------------------------------------------------------
@@ -31,6 +38,8 @@ extern bool   g_blockEventsOnDrag;
 
 static void gtk_radiobutton_clicked_callback( GtkWidget *WXUNUSED(widget), wxRadioBox *rb )
 {
+    if (g_isIdle) wxapp_install_idle_handler();
+
     if (!rb->HasVMT()) return;
     if (g_blockEventsOnDrag) return;