fixed bug in generation of thumb scroll events

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-04-14 16:26:36 +00:00
parent 193e19cfdf
commit a2615ebc22
2 changed files with 90 additions and 86 deletions

View File

@@ -102,11 +102,13 @@ static gint gtk_scrollbar_button_press_callback( GtkRange *widget,
// "button_release_event" from slider
//-----------------------------------------------------------------------------
static gint gtk_scrollbar_button_release_callback( GtkRange *WXUNUSED(widget),
static gint
gtk_scrollbar_button_release_callback( GtkRange *WXUNUSED(widget),
GdkEventButton *WXUNUSED(gdk_event),
wxScrollBar *win )
{
if (g_isIdle) wxapp_install_idle_handler();
if (g_isIdle)
wxapp_install_idle_handler();
// g_blockEventsOnScroll = FALSE;

View File

@@ -102,11 +102,13 @@ static gint gtk_scrollbar_button_press_callback( GtkRange *widget,
// "button_release_event" from slider
//-----------------------------------------------------------------------------
static gint gtk_scrollbar_button_release_callback( GtkRange *WXUNUSED(widget),
static gint
gtk_scrollbar_button_release_callback( GtkRange *WXUNUSED(widget),
GdkEventButton *WXUNUSED(gdk_event),
wxScrollBar *win )
{
if (g_isIdle) wxapp_install_idle_handler();
if (g_isIdle)
wxapp_install_idle_handler();
// g_blockEventsOnScroll = FALSE;