From a51378dda882115449b185aaa33b921d397568c9 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 24 Oct 2014 21:22:43 +0200 Subject: styleproperties: Deprecate --- gtk/gtkmodifierstyle.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'gtk/gtkmodifierstyle.c') diff --git a/gtk/gtkmodifierstyle.c b/gtk/gtkmodifierstyle.c index ca23223dcb..e09f67172c 100644 --- a/gtk/gtkmodifierstyle.c +++ b/gtk/gtkmodifierstyle.c @@ -20,6 +20,8 @@ #include "gtkstyleproviderprivate.h" #include "gtkintl.h" +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + typedef struct StylePropertyValue StylePropertyValue; struct _GtkModifierStylePrivate @@ -75,14 +77,10 @@ gtk_modifier_style_get_style_property (GtkStyleProvider *provider, GdkColor color; gchar *str; -G_GNUC_BEGIN_IGNORE_DEPRECATIONS - /* Reject non-color types for now */ if (pspec->value_type != GDK_TYPE_COLOR) return FALSE; -G_GNUC_END_IGNORE_DEPRECATIONS - priv = GTK_MODIFIER_STYLE (provider)->priv; str = g_strdup_printf ("-%s-%s", g_type_name (pspec->owner_type), @@ -240,16 +238,12 @@ _gtk_modifier_style_map_color (GtkModifierStyle *style, priv = style->priv; - G_GNUC_BEGIN_IGNORE_DEPRECATIONS; - if (color) symbolic_color = gtk_symbolic_color_new_literal (color); gtk_style_properties_map_color (priv->style, name, symbolic_color); - G_GNUC_END_IGNORE_DEPRECATIONS; - _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (style)); } @@ -292,3 +286,5 @@ _gtk_modifier_style_set_color_property (GtkModifierStyle *style, _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (style)); } + +G_GNUC_END_IGNORE_DEPRECATIONS -- cgit v1.2.1