diff options
author | Timm Bäder <mail@baedert.org> | 2018-03-06 21:25:01 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-03-07 20:17:39 +0100 |
commit | 4dfe4a6476d08b90e51dd7bbb0c02fe4d5d8c392 (patch) | |
tree | b39979a2c66a5efd5c368d5e18dad474ad6d07d7 /gtk/gtkexpander.c | |
parent | 6cc824af43f8f0bdbbebad9a68df1d204d25f2e4 (diff) | |
download | gtk+-4dfe4a6476d08b90e51dd7bbb0c02fe4d5d8c392.tar.gz |
expander: Remove label-fill property
It's just setting some internal boolean and nothing else. It's like this
in gtk3 as well so it can't be too important either.
Diffstat (limited to 'gtk/gtkexpander.c')
-rw-r--r-- | gtk/gtkexpander.c | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index 1756682561..e27bfab98f 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -141,7 +141,6 @@ enum PROP_USE_UNDERLINE, PROP_USE_MARKUP, PROP_LABEL_WIDGET, - PROP_LABEL_FILL, PROP_RESIZE_TOPLEVEL }; @@ -161,7 +160,6 @@ struct _GtkExpanderPrivate guint expanded : 1; guint use_underline : 1; guint use_markup : 1; - guint label_fill : 1; guint resize_toplevel : 1; }; @@ -308,14 +306,6 @@ gtk_expander_class_init (GtkExpanderClass *klass) GTK_TYPE_WIDGET, GTK_PARAM_READWRITE)); - g_object_class_install_property (gobject_class, - PROP_LABEL_FILL, - g_param_spec_boolean ("label-fill", - P_("Label fill"), - P_("Whether the label widget should fill all available horizontal space"), - FALSE, - GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY)); - /** * GtkExpander:resize-toplevel: * @@ -359,7 +349,6 @@ gtk_expander_init (GtkExpander *expander) priv->expanded = FALSE; priv->use_underline = FALSE; priv->use_markup = FALSE; - priv->label_fill = FALSE; priv->expand_timer = 0; priv->resize_toplevel = 0; @@ -435,9 +424,6 @@ gtk_expander_set_property (GObject *object, case PROP_LABEL_WIDGET: gtk_expander_set_label_widget (expander, g_value_get_object (value)); break; - case PROP_LABEL_FILL: - gtk_expander_set_label_fill (expander, g_value_get_boolean (value)); - break; case PROP_RESIZE_TOPLEVEL: gtk_expander_set_resize_toplevel (expander, g_value_get_boolean (value)); break; @@ -475,9 +461,6 @@ gtk_expander_get_property (GObject *object, priv->label_widget ? G_OBJECT (priv->label_widget) : NULL); break; - case PROP_LABEL_FILL: - g_value_set_boolean (value, priv->label_fill); - break; case PROP_RESIZE_TOPLEVEL: g_value_set_boolean (value, gtk_expander_get_resize_toplevel (expander)); break; @@ -1201,56 +1184,6 @@ gtk_expander_get_label_widget (GtkExpander *expander) } /** - * gtk_expander_set_label_fill: - * @expander: a #GtkExpander - * @label_fill: %TRUE if the label should should fill - * all available horizontal space - * - * Sets whether the label widget should fill all available - * horizontal space allocated to @expander. - */ -void -gtk_expander_set_label_fill (GtkExpander *expander, - gboolean label_fill) -{ - GtkExpanderPrivate *priv; - - g_return_if_fail (GTK_IS_EXPANDER (expander)); - - priv = expander->priv; - - label_fill = label_fill != FALSE; - - if (priv->label_fill != label_fill) - { - priv->label_fill = label_fill; - - if (priv->label_widget != NULL) - gtk_widget_queue_resize (GTK_WIDGET (expander)); - - g_object_notify (G_OBJECT (expander), "label-fill"); - } -} - -/** - * gtk_expander_get_label_fill: - * @expander: a #GtkExpander - * - * Returns whether the label widget will fill all available - * horizontal space allocated to @expander. - * - * Returns: %TRUE if the label widget will fill all - * available horizontal space - */ -gboolean -gtk_expander_get_label_fill (GtkExpander *expander) -{ - g_return_val_if_fail (GTK_IS_EXPANDER (expander), FALSE); - - return expander->priv->label_fill; -} - -/** * gtk_expander_set_resize_toplevel: * @expander: a #GtkExpander * @resize_toplevel: whether to resize the toplevel |