- return ( (window == GTK_WIDGET(range)->window) ||
- (window == range->trough) ||
- (window == range->slider) ||
- (window == range->step_forw) ||
- (window == range->step_back) );
+ 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
+ );
+}
+
+wxSize wxScrollBar::DoGetBestSize() const
+{
+ return wxControl::DoGetBestSize();