From b8e82a1548f99a40f1bce94f3e9bcb65ddaca3f0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 8 Sep 2015 20:27:50 -0400 Subject: [PATCH] settings: Reuse a value We've already gotten the value type, use it. --- gtk/gtksettings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c index 36a450ce80..9fc1d38dac 100644 --- a/gtk/gtksettings.c +++ b/gtk/gtksettings.c @@ -1947,8 +1947,8 @@ gtk_settings_get_property (GObject *object, */ if ((g_value_type_transformable (G_TYPE_INT, value_type) && !(fundamental_type == G_TYPE_ENUM || fundamental_type == G_TYPE_FLAGS)) || - g_value_type_transformable (G_TYPE_STRING, G_VALUE_TYPE (value)) || - g_value_type_transformable (GDK_TYPE_RGBA, G_VALUE_TYPE (value))) + g_value_type_transformable (G_TYPE_STRING, value_type) || + g_value_type_transformable (GDK_TYPE_RGBA, value_type)) { if (priv->property_values[property_id - 1].source == GTK_SETTINGS_SOURCE_APPLICATION || !gdk_screen_get_setting (priv->screen, pspec->name, value))