[gtk+/wip/baedert/gtkimageview: 8/15] expander: Add deprecation flags to _get/set_spacing



commit 95a7ede8b2fc0fe9142074da2d523e65fd51e5b5
Author: Timm Bäder <mail baedert org>
Date:   Thu Feb 11 21:33:08 2016 +0100

    expander: Add deprecation flags to _get/set_spacing

 gtk/gtkexpander.c |    2 ++
 gtk/gtkexpander.h |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index cb8ea62..75fa6a3 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -518,7 +518,9 @@ gtk_expander_set_property (GObject      *object,
       gtk_expander_set_use_markup (expander, g_value_get_boolean (value));
       break;
     case PROP_SPACING:
+      G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
       gtk_expander_set_spacing (expander, g_value_get_int (value));
+      G_GNUC_END_IGNORE_DEPRECATIONS;
       break;
     case PROP_LABEL_WIDGET:
       gtk_expander_set_label_widget (expander, g_value_get_object (value));
diff --git a/gtk/gtkexpander.h b/gtk/gtkexpander.h
index 085c448..78a3339 100644
--- a/gtk/gtkexpander.h
+++ b/gtk/gtkexpander.h
@@ -88,10 +88,10 @@ GDK_AVAILABLE_IN_ALL
 gboolean              gtk_expander_get_expanded        (GtkExpander *expander);
 
 /* Spacing between the expander/label and the child */
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_20
 void                  gtk_expander_set_spacing         (GtkExpander *expander,
                                                         gint         spacing);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_20
 gint                  gtk_expander_get_spacing         (GtkExpander *expander);
 
 GDK_AVAILABLE_IN_ALL


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