[gtk+/gtk-2-24] range: Deprecate update policies.



commit 54a07580c038347cd6faa9297fa516565d5a08f8
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jan 5 14:47:02 2011 +0100

    range: Deprecate update policies.
    
    They're gonna be removed from GTK3.

 gtk/gtk.symbols |    4 ++++
 gtk/gtkrange.c  |    8 ++++++++
 gtk/gtkrange.h  |    2 ++
 3 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index 7e92fba..8d8f59a 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -3408,7 +3408,9 @@ gtk_range_get_show_fill_level
 gtk_range_get_slider_range
 gtk_range_get_slider_size_fixed
 gtk_range_get_type G_GNUC_CONST
+#ifndef GTK_DISABLE_DEPRECATED
 gtk_range_get_update_policy
+#endif
 gtk_range_get_upper_stepper_sensitivity
 gtk_range_get_value
 gtk_range_set_adjustment
@@ -3422,7 +3424,9 @@ gtk_range_set_range
 gtk_range_set_restrict_to_fill_level
 gtk_range_set_show_fill_level
 gtk_range_set_slider_size_fixed
+#ifndef GTK_DISABLE_DEPRECATED
 gtk_range_set_update_policy
+#endif
 gtk_range_set_upper_stepper_sensitivity
 gtk_range_set_value
 #endif
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 6960087..8669b41 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -30,6 +30,8 @@
 #include <stdio.h>
 #include <math.h>
 
+#undef GTK_DISABLE_DEPRECATED
+
 #include <gdk/gdkkeysyms.h>
 #include "gtkmain.h"
 #include "gtkmarshalers.h"
@@ -757,6 +759,9 @@ gtk_range_get_adjustment (GtkRange *range)
  * continuous. #GTK_UPDATE_DISCONTINUOUS means that the value will only
  * be updated when the user releases the button and ends the slider
  * drag operation.
+ *
+ * Deprecated: 2.24: There is no replacement. If you require delayed
+ *   updates, you need to code it yourself.
  **/
 void
 gtk_range_set_update_policy (GtkRange      *range,
@@ -778,6 +783,9 @@ gtk_range_set_update_policy (GtkRange      *range,
  * Gets the update policy of @range. See gtk_range_set_update_policy().
  *
  * Return value: the current update policy
+ *
+ * Deprecated: 2.24: There is no replacement. If you require delayed
+ *   updates, you need to code it yourself.
  **/
 GtkUpdateType
 gtk_range_get_update_policy (GtkRange *range)
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h
index abfbc7c..04bfda1 100644
--- a/gtk/gtkrange.h
+++ b/gtk/gtkrange.h
@@ -135,9 +135,11 @@ struct _GtkRangeClass
 
 GType              gtk_range_get_type                      (void) G_GNUC_CONST;
 
+#ifndef GTK_DISABLE_DEPRECATED
 void               gtk_range_set_update_policy             (GtkRange      *range,
                                                             GtkUpdateType  policy);
 GtkUpdateType      gtk_range_get_update_policy             (GtkRange      *range);
+#endif /* GTK_DISABLE_DEPRECATED */
 
 void               gtk_range_set_adjustment                (GtkRange      *range,
                                                             GtkAdjustment *adjustment);



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