mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 15:01:23 +00:00
scrollbar: Remove style property
This commit is contained in:
parent
0a6ed12d56
commit
296db5ab52
@ -94,13 +94,6 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class)
|
|||||||
|
|
||||||
widget_class->style_updated = gtk_scrollbar_style_updated;
|
widget_class->style_updated = gtk_scrollbar_style_updated;
|
||||||
|
|
||||||
gtk_widget_class_install_style_property (widget_class,
|
|
||||||
g_param_spec_boolean ("fixed-slider-length",
|
|
||||||
P_("Fixed slider size"),
|
|
||||||
P_("Don't change slider size, just lock it to the minimum length"),
|
|
||||||
FALSE,
|
|
||||||
GTK_PARAM_READABLE));
|
|
||||||
|
|
||||||
gtk_widget_class_install_style_property (widget_class,
|
gtk_widget_class_install_style_property (widget_class,
|
||||||
g_param_spec_boolean ("has-backward-stepper",
|
g_param_spec_boolean ("has-backward-stepper",
|
||||||
P_("Backward stepper"),
|
P_("Backward stepper"),
|
||||||
@ -136,20 +129,16 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class)
|
|||||||
static void
|
static void
|
||||||
gtk_scrollbar_update_style (GtkScrollbar *scrollbar)
|
gtk_scrollbar_update_style (GtkScrollbar *scrollbar)
|
||||||
{
|
{
|
||||||
gboolean fixed_size;
|
|
||||||
gboolean has_a, has_b, has_c, has_d;
|
gboolean has_a, has_b, has_c, has_d;
|
||||||
GtkRange *range = GTK_RANGE (scrollbar);
|
GtkRange *range = GTK_RANGE (scrollbar);
|
||||||
GtkWidget *widget = GTK_WIDGET (scrollbar);
|
GtkWidget *widget = GTK_WIDGET (scrollbar);
|
||||||
|
|
||||||
gtk_widget_style_get (widget,
|
gtk_widget_style_get (widget,
|
||||||
"fixed-slider-length", &fixed_size,
|
|
||||||
"has-backward-stepper", &has_a,
|
"has-backward-stepper", &has_a,
|
||||||
"has-secondary-forward-stepper", &has_b,
|
"has-secondary-forward-stepper", &has_b,
|
||||||
"has-secondary-backward-stepper", &has_c,
|
"has-secondary-backward-stepper", &has_c,
|
||||||
"has-forward-stepper", &has_d,
|
"has-forward-stepper", &has_d,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
gtk_range_set_slider_size_fixed (range, fixed_size);
|
|
||||||
_gtk_range_set_steppers (range, has_a, has_b, has_c, has_d);
|
_gtk_range_set_steppers (range, has_a, has_b, has_c, has_d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user