forked from AuroraMiddleware/gtk
expander: Remove spacing property
This commit is contained in:
parent
85e01b9f39
commit
e2b6044c1b
@ -1216,8 +1216,6 @@ gtk_expander_new
|
|||||||
gtk_expander_new_with_mnemonic
|
gtk_expander_new_with_mnemonic
|
||||||
gtk_expander_set_expanded
|
gtk_expander_set_expanded
|
||||||
gtk_expander_get_expanded
|
gtk_expander_get_expanded
|
||||||
gtk_expander_set_spacing
|
|
||||||
gtk_expander_get_spacing
|
|
||||||
gtk_expander_set_label
|
gtk_expander_set_label
|
||||||
gtk_expander_get_label
|
gtk_expander_get_label
|
||||||
gtk_expander_set_use_underline
|
gtk_expander_set_use_underline
|
||||||
|
@ -137,7 +137,6 @@ enum
|
|||||||
PROP_LABEL,
|
PROP_LABEL,
|
||||||
PROP_USE_UNDERLINE,
|
PROP_USE_UNDERLINE,
|
||||||
PROP_USE_MARKUP,
|
PROP_USE_MARKUP,
|
||||||
PROP_SPACING,
|
|
||||||
PROP_LABEL_WIDGET,
|
PROP_LABEL_WIDGET,
|
||||||
PROP_LABEL_FILL,
|
PROP_LABEL_FILL,
|
||||||
PROP_RESIZE_TOPLEVEL
|
PROP_RESIZE_TOPLEVEL
|
||||||
@ -312,25 +311,6 @@ gtk_expander_class_init (GtkExpanderClass *klass)
|
|||||||
FALSE,
|
FALSE,
|
||||||
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY));
|
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,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_LABEL_WIDGET,
|
PROP_LABEL_WIDGET,
|
||||||
g_param_spec_object ("label-widget",
|
g_param_spec_object ("label-widget",
|
||||||
@ -474,9 +454,6 @@ gtk_expander_set_property (GObject *object,
|
|||||||
case PROP_USE_MARKUP:
|
case PROP_USE_MARKUP:
|
||||||
gtk_expander_set_use_markup (expander, g_value_get_boolean (value));
|
gtk_expander_set_use_markup (expander, g_value_get_boolean (value));
|
||||||
break;
|
break;
|
||||||
case PROP_SPACING:
|
|
||||||
gtk_expander_set_spacing (expander, g_value_get_int (value));
|
|
||||||
break;
|
|
||||||
case PROP_LABEL_WIDGET:
|
case PROP_LABEL_WIDGET:
|
||||||
gtk_expander_set_label_widget (expander, g_value_get_object (value));
|
gtk_expander_set_label_widget (expander, g_value_get_object (value));
|
||||||
break;
|
break;
|
||||||
@ -515,9 +492,6 @@ gtk_expander_get_property (GObject *object,
|
|||||||
case PROP_USE_MARKUP:
|
case PROP_USE_MARKUP:
|
||||||
g_value_set_boolean (value, priv->use_markup);
|
g_value_set_boolean (value, priv->use_markup);
|
||||||
break;
|
break;
|
||||||
case PROP_SPACING:
|
|
||||||
g_value_set_int (value, priv->spacing);
|
|
||||||
break;
|
|
||||||
case PROP_LABEL_WIDGET:
|
case PROP_LABEL_WIDGET:
|
||||||
g_value_set_object (value,
|
g_value_set_object (value,
|
||||||
priv->label_widget ?
|
priv->label_widget ?
|
||||||
@ -1233,55 +1207,6 @@ gtk_expander_get_expanded (GtkExpander *expander)
|
|||||||
return expander->priv->expanded;
|
return expander->priv->expanded;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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:
|
* gtk_expander_set_label:
|
||||||
* @expander: a #GtkExpander
|
* @expander: a #GtkExpander
|
||||||
|
@ -87,13 +87,6 @@ void gtk_expander_set_expanded (GtkExpander *expander,
|
|||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
gboolean gtk_expander_get_expanded (GtkExpander *expander);
|
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
|
GDK_AVAILABLE_IN_ALL
|
||||||
void gtk_expander_set_label (GtkExpander *expander,
|
void gtk_expander_set_label (GtkExpander *expander,
|
||||||
const gchar *label);
|
const gchar *label);
|
||||||
|
Loading…
Reference in New Issue
Block a user