void wxSlider::SetPageSize( int pageSize )
{
BlockScrollEvent();
- gtk_range_set_increments(GTK_RANGE (m_widget), 1, pageSize);
+ gtk_range_set_increments(GTK_RANGE (m_widget), GetLineSize(), pageSize);
UnblockScrollEvent();
}
return 0;
}
-void wxSlider::SetLineSize( int WXUNUSED(lineSize) )
+void wxSlider::SetLineSize( int lineSize )
{
+ BlockScrollEvent();
+ gtk_range_set_increments(GTK_RANGE (m_widget), lineSize, GetPageSize());
+ UnblockScrollEvent();
}
int wxSlider::GetLineSize() const
{
- return 0;
+ return int(gtk_range_get_adjustment (GTK_RANGE (m_widget))->step_increment);
}
-bool wxSlider::IsOwnGtkWindow( GdkWindow *window )
+GdkWindow *wxSlider::GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const
{
- GtkRange *range = GTK_RANGE(m_widget);
- return (range->event_window == window);
+ return GTK_RANGE(m_widget)->event_window;
}
// static