[wxGTK] Implement wxSlider::GetLineSize and wxSlider::SetLineSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
20c3174dd1
commit
98a0564ea6
@ -370,7 +370,7 @@ int wxSlider::GetMax() const
|
||||
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();
|
||||
}
|
||||
|
||||
@ -389,13 +389,16 @@ int wxSlider::GetThumbLength() const
|
||||
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 )
|
||||
|
Loading…
Reference in New Issue
Block a user