X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c918b2cda24daa062cc5fe4f5dd1dbd4fb6edaa3..d10e22fe8ad283f37b1809349028ffc282e393ce:/src/gtk/scrolbar.cpp diff --git a/src/gtk/scrolbar.cpp b/src/gtk/scrolbar.cpp index d0a691baea..00ea880973 100644 --- a/src/gtk/scrolbar.cpp +++ b/src/gtk/scrolbar.cpp @@ -57,7 +57,7 @@ extern "C" { static gboolean gtk_button_press_event(GtkRange*, GdkEventButton*, wxScrollBar* win) { - if (g_isIdle) wxapp_install_idle_handler(); + // don't need to install idle handler, its done from "event" signal win->m_mouseButtonDown = true; return false; @@ -98,8 +98,7 @@ extern "C" { static gboolean gtk_button_release_event(GtkRange* range, GdkEventButton*, wxScrollBar* win) { - if (g_isIdle) - wxapp_install_idle_handler(); + // don't need to install idle handler, its done from "event" signal win->m_mouseButtonDown = false; // If thumb tracking @@ -248,10 +247,9 @@ void wxScrollBar::SetRange(int range) SetScrollbar(GetThumbPosition(), GetThumbSize(), range, GetPageSize()); } -bool wxScrollBar::IsOwnGtkWindow( GdkWindow *window ) +GdkWindow *wxScrollBar::GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const { - GtkRange *range = GTK_RANGE(m_widget); - return ( (window == GTK_WIDGET(range)->window) ); + return GTK_WIDGET(GTK_RANGE(m_widget))->window; } // static