]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/slider.cpp
Apple #pragma implementation fix (Yes, some of us do compile wxGTK on OS X)
[wxWidgets.git] / src / gtk / slider.cpp
index 9f595756798574947c513c65abd7a676a5ab3682..799f21d2b11f5f80981f3b1c193a9919ff42a4ad 100644 (file)
@@ -255,14 +255,15 @@ int wxSlider::GetLineSize() const
 bool wxSlider::IsOwnGtkWindow( GdkWindow *window )
 {
     GtkRange *range = GTK_RANGE(m_widget);
+#ifdef __WXGTK20__
+    return (range->event_window == window);
+#else
     return ( (window == GTK_WIDGET(range)->window)
-#ifndef __WXGTK20__
                 || (window == range->trough)
                 || (window == range->slider)
                 || (window == range->step_forw)
-                || (window == range->step_back)
-#endif // GTK+ 1.x
-           );
+                || (window == range->step_back) );
+#endif
 }
 
 void wxSlider::ApplyWidgetStyle()