From e02c21fdd89df227c856b91307c226a507f47fc6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 15 Dec 2015 06:27:52 -0500 Subject: button box: Deprecate style properties These can all be replaced by standard CSS properties. --- gtk/gtkbbox.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'gtk/gtkbbox.c') diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c index 4c5d35bb58..2a0699cc67 100644 --- a/gtk/gtkbbox.c +++ b/gtk/gtkbbox.c @@ -168,6 +168,8 @@ gtk_button_box_class_init (GtkButtonBoxClass *class) * GtkButtonBox:child-min-width: * * The minimum width of buttons inside the box. + * + * Deprecated: 3.20: Use CSS min-width instead. */ gtk_widget_class_install_style_property (widget_class, g_param_spec_int ("child-min-width", @@ -176,12 +178,14 @@ gtk_button_box_class_init (GtkButtonBoxClass *class) 0, G_MAXINT, DEFAULT_CHILD_MIN_WIDTH, - GTK_PARAM_READABLE)); + GTK_PARAM_READABLE|G_PARAM_DEPRECATED)); /** * GtkButtonBox:child-min-height: * * The minimum height of buttons inside the box. + * + * Deprecated: 3.20: Use CSS min-height instead. */ gtk_widget_class_install_style_property (widget_class, g_param_spec_int ("child-min-height", @@ -190,12 +194,14 @@ gtk_button_box_class_init (GtkButtonBoxClass *class) 0, G_MAXINT, DEFAULT_CHILD_MIN_HEIGHT, - GTK_PARAM_READABLE)); + GTK_PARAM_READABLE|G_PARAM_DEPRECATED)); /** * GtkButtonBox:child-internal-pad-x: * * The amount to increase a child's size on either side. + * + * Deprecated: 3.20: Use CSS padding instead. */ gtk_widget_class_install_style_property (widget_class, g_param_spec_int ("child-internal-pad-x", @@ -204,12 +210,14 @@ gtk_button_box_class_init (GtkButtonBoxClass *class) 0, G_MAXINT, DEFAULT_CHILD_IPAD_X, - GTK_PARAM_READABLE)); + GTK_PARAM_READABLE|G_PARAM_DEPRECATED)); /** * GtkButtonBox:child-internal-pad-y: * * The amount to increase a child's size on the top and bottom. + * + * Deprecated: 3.20: Use CSS padding instead. */ gtk_widget_class_install_style_property (widget_class, g_param_spec_int ("child-internal-pad-y", @@ -218,7 +226,7 @@ gtk_button_box_class_init (GtkButtonBoxClass *class) 0, G_MAXINT, DEFAULT_CHILD_IPAD_Y, - GTK_PARAM_READABLE)); + GTK_PARAM_READABLE|G_PARAM_DEPRECATED)); g_object_class_install_property (gobject_class, PROP_LAYOUT_STYLE, -- cgit v1.2.1