[gtk+] range: Deprecate detail strings in class struct



commit 51f543317002652cd772ef159c9925299e96644a
Author: Benjamin Otte <otte redhat com>
Date:   Tue Nov 18 18:49:17 2014 +0100

    range: Deprecate detail strings in class struct
    
    ... and stop setting them.

 gtk/gtkrange.c |    3 ---
 gtk/gtkrange.h |    4 ++--
 gtk/gtkscale.c |    1 -
 3 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 35cc499..fdda1da 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -335,9 +335,6 @@ gtk_range_class_init (GtkRangeClass *class)
   class->move_slider = gtk_range_move_slider;
   class->change_value = gtk_range_real_change_value;
 
-  class->slider_detail = "slider";
-  class->stepper_detail = "stepper";
-
   /**
    * GtkRange::value-changed:
    * @range: the #GtkRange that received the signal
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h
index 24a7ea1..ba0cf3d 100644
--- a/gtk/gtkrange.h
+++ b/gtk/gtkrange.h
@@ -59,8 +59,8 @@ struct _GtkRangeClass
   GtkWidgetClass parent_class;
 
   /* what detail to pass to GTK drawing functions */
-  gchar *slider_detail;
-  gchar *stepper_detail;
+  G_GNUC_DEPRECATED gchar *slider_detail;
+  G_GNUC_DEPRECATED gchar *stepper_detail;
 
   void (* value_changed)    (GtkRange     *range);
   void (* adjust_bounds)    (GtkRange     *range,
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index aa84e4d..75bf4d2 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -266,7 +266,6 @@ gtk_scale_class_init (GtkScaleClass *class)
   widget_class->get_preferred_width = gtk_scale_get_preferred_width;
   widget_class->get_preferred_height = gtk_scale_get_preferred_height;
 
-  range_class->slider_detail = "Xscale";
   range_class->get_range_border = gtk_scale_get_range_border;
 
   class->get_layout_offsets = gtk_scale_real_get_layout_offsets;


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