summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-01-05 14:47:02 +0100
committerBenjamin Otte <otte@redhat.com>2011-01-05 14:53:15 +0100
commit54a07580c038347cd6faa9297fa516565d5a08f8 (patch)
tree08c9d6e8a5eeac06433a8a076c8470f854873cdf
parent87285bc8bfd50a9feee225ddc06c8c006415b9da (diff)
downloadgtk+-54a07580c038347cd6faa9297fa516565d5a08f8.tar.gz
range: Deprecate update policies.
They're gonna be removed from GTK3.
-rw-r--r--gtk/gtk.symbols4
-rw-r--r--gtk/gtkrange.c8
-rw-r--r--gtk/gtkrange.h2
3 files changed, 14 insertions, 0 deletions
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index 7e92fba84a..8d8f59ace9 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 6960087aa7..8669b41c92 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 abfbc7c137..04bfda1545 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);