settings: Reuse a value

We've already gotten the value type, use it.
This commit is contained in:
Matthias Clasen 2015-09-08 20:27:50 -04:00
parent 96d66a11cf
commit b8e82a1548

View File

@ -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))