[gtk+] scale: deprecate value-spacing style property



commit f294bdc80336e481d59c9b44efe85066a6b3b5e4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Mar 6 00:27:58 2016 -0800

    scale: deprecate value-spacing style property
    
    Nothing uses it now.

 gtk/gtkscale.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 465a9ff..f4cad9e 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -785,6 +785,14 @@ gtk_scale_class_init (GtkScaleClass *class)
                                                              0, G_MAXINT, 31,
                                                              GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
 
+  /**
+   * GtkScale:value-spacing:
+   *
+   * Space between value text and the slider/trough area.
+   *
+   * Deprecated: 3.20: Use min-height/min-width CSS properties on the value
+   *   element instead. The value of this style property is ignored.
+   */
   gtk_widget_class_install_style_property (widget_class,
                                           g_param_spec_int ("value-spacing",
                                                             P_("Value spacing"),
@@ -792,7 +800,7 @@ gtk_scale_class_init (GtkScaleClass *class)
                                                             0,
                                                             G_MAXINT,
                                                             2,
-                                                            GTK_PARAM_READABLE));
+                                                            GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
   
   /* All bindings (even arrow keys) are on both h/v scale, because
    * blind users etc. don't care about scale orientation.


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