From fcca496734a3dffa13e5d8d95f7ab6cb2c1136e0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 14 Dec 2015 15:57:38 -0500 Subject: [PATCH] widget: Deprecate some style properties Deprecate the ::wide-separators and ::separator-width/height style properties. --- gtk/gtkwidget.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 0bf08a07ee..59708bb923 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -3566,13 +3566,14 @@ G_GNUC_END_IGNORE_DEPRECATIONS * configurable width and should be drawn using a box instead of a line. * * Since: 2.10 + * Deprecated: 3.20: Use the standard min-width and min-height CSS properties instead. */ gtk_widget_class_install_style_property (klass, g_param_spec_boolean ("wide-separators", P_("Wide Separators"), P_("Whether separators have configurable width and should be drawn using a box instead of a line"), FALSE, - GTK_PARAM_READABLE)); + GTK_PARAM_READABLE|G_PARAM_DEPRECATED)); /** * GtkWidget:separator-width: @@ -3581,13 +3582,15 @@ G_GNUC_END_IGNORE_DEPRECATIONS * This property only takes effect if the "wide-separators" style property is %TRUE. * * Since: 2.10 + * + * Deprecated: 3.20: Use the standard min-width and min-height CSS properties instead. */ gtk_widget_class_install_style_property (klass, g_param_spec_int ("separator-width", P_("Separator Width"), P_("The width of separators if wide-separators is TRUE"), 0, G_MAXINT, 0, - GTK_PARAM_READABLE)); + GTK_PARAM_READABLE|G_PARAM_DEPRECATED)); /** * GtkWidget:separator-height: @@ -3596,13 +3599,15 @@ G_GNUC_END_IGNORE_DEPRECATIONS * This property only takes effect if the "wide-separators" style property is %TRUE. * * Since: 2.10 + * + * Deprecated: 3.20: Use the standard min-width and min-height CSS properties instead. */ gtk_widget_class_install_style_property (klass, g_param_spec_int ("separator-height", P_("Separator Height"), P_("The height of separators if \"wide-separators\" is TRUE"), 0, G_MAXINT, 0, - GTK_PARAM_READABLE)); + GTK_PARAM_READABLE|G_PARAM_DEPRECATED)); /** * GtkWidget:scroll-arrow-hlength: