[gtk+/wip/baedert/box: 21/72] scrollbar: Remove style property



commit c068c7abed6666589f739619be4d77dbc4ecded1
Author: Timm Bäder <mail baedert org>
Date:   Tue Oct 11 16:43:29 2016 +0200

    scrollbar: Remove style property

 gtk/gtkscrollbar.c |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/gtk/gtkscrollbar.c b/gtk/gtkscrollbar.c
index 8af00d0..b51a587 100644
--- a/gtk/gtkscrollbar.c
+++ b/gtk/gtkscrollbar.c
@@ -95,13 +95,6 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class)
   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,
                                           g_param_spec_boolean ("has-backward-stepper",
                                                                  P_("Backward stepper"),
                                                                  P_("Display the standard backward arrow 
button"),
@@ -136,20 +129,16 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class)
 static void
 gtk_scrollbar_update_style (GtkScrollbar *scrollbar)
 {
-  gboolean fixed_size;
   gboolean has_a, has_b, has_c, has_d;
   GtkRange *range = GTK_RANGE (scrollbar);
   GtkWidget *widget = GTK_WIDGET (scrollbar);
 
   gtk_widget_style_get (widget,
-                        "fixed-slider-length", &fixed_size,
                         "has-backward-stepper", &has_a,
                         "has-secondary-forward-stepper", &has_b,
                         "has-secondary-backward-stepper", &has_c,
                         "has-forward-stepper", &has_d,
                         NULL);
-
-  gtk_range_set_slider_size_fixed (range, fixed_size);
   _gtk_range_set_steppers (range, has_a, has_b, has_c, has_d);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]