]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/scrolbar.cpp
!__WX_DC_BLIT_FIXED__ case
[wxWidgets.git] / src / gtk / scrolbar.cpp
index d0a691baea0d1db8e6f8ba43b97b3a178410f270..00ea88097329bf6c5205f06d55c51726004bc47c 100644 (file)
@@ -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