[gtk+] expander: Remove spacing property



commit e2b6044c1bab21510119d4f63ce6032333f5515a
Author: Timm Bäder <mail baedert org>
Date:   Sat Oct 22 19:36:58 2016 +0200

    expander: Remove spacing property

 docs/reference/gtk/gtk4-sections.txt |    2 -
 gtk/gtkexpander.c                    |   75 ----------------------------------
 gtk/gtkexpander.h                    |    7 ---
 3 files changed, 0 insertions(+), 84 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 8eb948b..7a36a2d 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -1216,8 +1216,6 @@ gtk_expander_new
 gtk_expander_new_with_mnemonic
 gtk_expander_set_expanded
 gtk_expander_get_expanded
-gtk_expander_set_spacing
-gtk_expander_get_spacing
 gtk_expander_set_label
 gtk_expander_get_label
 gtk_expander_set_use_underline
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index dcbbb10..2b6c985 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -137,7 +137,6 @@ enum
   PROP_LABEL,
   PROP_USE_UNDERLINE,
   PROP_USE_MARKUP,
-  PROP_SPACING,
   PROP_LABEL_WIDGET,
   PROP_LABEL_FILL,
   PROP_RESIZE_TOPLEVEL
@@ -312,25 +311,6 @@ gtk_expander_class_init (GtkExpanderClass *klass)
                                                          FALSE,
                                                          
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
 
-  /**
-   * GtkExpander:spacing:
-   *
-   * Space to put between the label and the child when the
-   * expander is expanded.
-   *
-   * Deprecated: 3.20: This property is deprecated and ignored.
-   *     Use margins on the child instead.
-   */
-  g_object_class_install_property (gobject_class,
-                                   PROP_SPACING,
-                                   g_param_spec_int ("spacing",
-                                                     P_("Spacing"),
-                                                     P_("Space to put between the label and the child"),
-                                                     0,
-                                                     G_MAXINT,
-                                                     0,
-                                                     
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY|G_PARAM_DEPRECATED));
-
   g_object_class_install_property (gobject_class,
                                    PROP_LABEL_WIDGET,
                                    g_param_spec_object ("label-widget",
@@ -474,9 +454,6 @@ gtk_expander_set_property (GObject      *object,
     case PROP_USE_MARKUP:
       gtk_expander_set_use_markup (expander, g_value_get_boolean (value));
       break;
-    case PROP_SPACING:
-      gtk_expander_set_spacing (expander, g_value_get_int (value));
-      break;
     case PROP_LABEL_WIDGET:
       gtk_expander_set_label_widget (expander, g_value_get_object (value));
       break;
@@ -515,9 +492,6 @@ gtk_expander_get_property (GObject    *object,
     case PROP_USE_MARKUP:
       g_value_set_boolean (value, priv->use_markup);
       break;
-    case PROP_SPACING:
-      g_value_set_int (value, priv->spacing);
-      break;
     case PROP_LABEL_WIDGET:
       g_value_set_object (value,
                           priv->label_widget ?
@@ -1234,55 +1208,6 @@ gtk_expander_get_expanded (GtkExpander *expander)
 }
 
 /**
- * gtk_expander_set_spacing:
- * @expander: a #GtkExpander
- * @spacing: distance between the expander and child in pixels
- *
- * Sets the spacing field of @expander, which is the number of
- * pixels to place between expander and the child.
- *
- * Since: 2.4
- *
- * Deprecated: 3.20: Use margins on the child instead.
- */
-void
-gtk_expander_set_spacing (GtkExpander *expander,
-                          gint         spacing)
-{
-  g_return_if_fail (GTK_IS_EXPANDER (expander));
-  g_return_if_fail (spacing >= 0);
-
-  if (expander->priv->spacing != spacing)
-    {
-      expander->priv->spacing = spacing;
-
-      gtk_widget_queue_resize (GTK_WIDGET (expander));
-
-      g_object_notify (G_OBJECT (expander), "spacing");
-    }
-}
-
-/**
- * gtk_expander_get_spacing:
- * @expander: a #GtkExpander
- *
- * Gets the value set by gtk_expander_set_spacing().
- *
- * Returns: spacing between the expander and child
- *
- * Since: 2.4
- *
- * Deprecated: 3.20: Use margins on the child instead.
- */
-gint
-gtk_expander_get_spacing (GtkExpander *expander)
-{
-  g_return_val_if_fail (GTK_IS_EXPANDER (expander), 0);
-
-  return expander->priv->spacing;
-}
-
-/**
  * gtk_expander_set_label:
  * @expander: a #GtkExpander
  * @label: (allow-none): a string
diff --git a/gtk/gtkexpander.h b/gtk/gtkexpander.h
index 085c448..69a3fec 100644
--- a/gtk/gtkexpander.h
+++ b/gtk/gtkexpander.h
@@ -87,13 +87,6 @@ void                  gtk_expander_set_expanded        (GtkExpander *expander,
 GDK_AVAILABLE_IN_ALL
 gboolean              gtk_expander_get_expanded        (GtkExpander *expander);
 
-/* Spacing between the expander/label and the child */
-GDK_AVAILABLE_IN_ALL
-void                  gtk_expander_set_spacing         (GtkExpander *expander,
-                                                        gint         spacing);
-GDK_AVAILABLE_IN_ALL
-gint                  gtk_expander_get_spacing         (GtkExpander *expander);
-
 GDK_AVAILABLE_IN_ALL
 void                  gtk_expander_set_label           (GtkExpander *expander,
                                                         const gchar *label);


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