X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b019151f0b23d0fd97925ae8859bd7d0dfc91b0f..c127177f8dc31dbe99764852b8dbcc047d3ad826:/src/gtk/radiobox.cpp?ds=inline diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index 1f60b251b0..e9ba1e8c5e 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -19,6 +19,13 @@ #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;