- int pos = (int)(m_adjust->value+0.5);
- int thumb = (int)(m_adjust->page_size+0.5);
- int page = (int)(m_adjust->page_increment+0.5);
- SetScrollbar( pos, thumb, viewLength, page );
-};
+ int pos = (int)(m_adjust->value+0.5);
+ int thumb = (int)(m_adjust->page_size+0.5);
+ int page = (int)(m_adjust->page_increment+0.5);
+ SetScrollbar( pos, thumb, viewLength, page );
+}
+
+bool wxScrollBar::IsOwnGtkWindow( GdkWindow *window )
+{
+ GtkRange *range = GTK_RANGE(m_widget);
+ return ( (window == GTK_WIDGET(range)->window) ||
+ (window == range->trough) ||
+ (window == range->slider) ||
+ (window == range->step_forw) ||
+ (window == range->step_back) );
+}
+
+void wxScrollBar::ApplyWidgetStyle()
+{
+ SetWidgetStyle();
+ gtk_widget_set_style( m_widget, m_widgetStyle );
+}