#include "gdk/gdk.h"
#include "gtk/gtk.h"
+//-----------------------------------------------------------------------------
+// idle system
+//-----------------------------------------------------------------------------
+
+extern void wxapp_install_idle_handler();
+extern bool g_isIdle;
+
//-----------------------------------------------------------------------------
// data
//-----------------------------------------------------------------------------
static void gtk_scrollbar_callback( GtkWidget *WXUNUSED(widget), wxScrollBar *win )
{
+ if (g_isIdle) wxapp_install_idle_handler();
+
if (!win->HasVMT()) return;
if (g_blockEventsOnDrag) return;
GdkEventButton *WXUNUSED(gdk_event),
wxScrollBar *win )
{
- win->m_isScrolling = TRUE;
+ if (g_isIdle) wxapp_install_idle_handler();
+
+ win->m_isScrolling = TRUE;
// g_blockEventsOnScroll = TRUE; doesn't work in DialogEd
- return FALSE;
+ return FALSE;
}
//-----------------------------------------------------------------------------
GdkEventButton *WXUNUSED(gdk_event),
wxScrollBar *win )
{
+ if (g_isIdle) wxapp_install_idle_handler();
+
win->m_isScrolling = FALSE;
// g_blockEventsOnScroll = FALSE;