[gtk+] button box: Deprecate style properties
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] button box: Deprecate style properties
- Date: Tue, 15 Dec 2015 13:46:11 +0000 (UTC)
commit e02c21fdd89df227c856b91307c226a507f47fc6
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 15 06:27:52 2015 -0500
button box: Deprecate style properties
These can all be replaced by standard CSS properties.
gtk/gtkbbox.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c
index 4c5d35b..2a0699c 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]