mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
range: Add private api to autoscroll
This will be used to scroll the scale in scale buttons.
This commit is contained in:
parent
2f6f8a7e6f
commit
b891d205dd
@ -3047,3 +3047,18 @@ gtk_range_get_slider_widget (GtkRange *range)
|
||||
{
|
||||
return range->priv->slider_widget;
|
||||
}
|
||||
|
||||
void
|
||||
gtk_range_start_autoscroll (GtkRange *range,
|
||||
GtkScrollType scroll_type)
|
||||
{
|
||||
remove_autoscroll (range);
|
||||
range->priv->autoscroll_mode = scroll_type;
|
||||
add_autoscroll (range);
|
||||
}
|
||||
|
||||
void
|
||||
gtk_range_stop_autoscroll (GtkRange *range)
|
||||
{
|
||||
remove_autoscroll (range);
|
||||
}
|
||||
|
@ -43,6 +43,10 @@ gint _gtk_range_get_stop_positions (GtkRange *range
|
||||
|
||||
GtkWidget *gtk_range_get_slider_widget (GtkRange *range);
|
||||
|
||||
void gtk_range_start_autoscroll (GtkRange *range,
|
||||
GtkScrollType scroll_type);
|
||||
void gtk_range_stop_autoscroll (GtkRange *range);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user