Commit f300aefa authored by Javier Jardón's avatar Javier Jardón

Added _gtk_range_set_steppers () internal function

It's needed by gtkscrollbar
parent 1814ea6a
......@@ -4004,3 +4004,16 @@ _gtk_range_set_round_digits (GtkRange *range,
{
range->round_digits = round_digits;
}
void
_gtk_range_set_steppers (GtkRange *range,
gboolean has_a,
gboolean has_b,
gboolean has_c,
gboolean has_d)
{
range->has_stepper_a = has_a;
range->has_stepper_b = has_b;
range->has_stepper_c = has_c;
range->has_stepper_d = has_d;
}
......@@ -203,7 +203,11 @@ gint _gtk_range_get_stop_positions (GtkRange *range
gint **values);
void _gtk_range_set_round_digits (GtkRange *range,
gint round_digits);
void _gtk_range_set_steppers (GtkRange *range,
gboolean has_a,
gboolean has_b,
gboolean has_c,
gboolean has_d);
G_END_DECLS
......
......@@ -115,11 +115,8 @@ gtk_scrollbar_style_set (GtkWidget *widget,
range->min_slider_size = slider_length;
range->slider_size_fixed = fixed_size;
range->has_stepper_a = has_a;
range->has_stepper_b = has_b;
range->has_stepper_c = has_c;
range->has_stepper_d = has_d;
_gtk_range_set_steppers (range,
has_a, has_b, has_c, has_d);
GTK_WIDGET_CLASS (gtk_scrollbar_parent_class)->style_set (widget, previous);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment