diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c index 8b2374e1e4..44bb69ffba 100644 --- a/gdk/x11/gdkscreen-x11.c +++ b/gdk/x11/gdkscreen-x11.c @@ -1520,7 +1520,7 @@ gdk_x11_screen_get_setting (GdkScreen *screen, if (setting == NULL) goto out; - if (!g_value_type_transformable (G_VALUE_TYPE (setting), G_VALUE_TYPE (value))) + if (!g_value_transform (setting, value)) { g_warning ("Cannot transform xsetting %s of type %s to type %s\n", name, @@ -1529,8 +1529,6 @@ gdk_x11_screen_get_setting (GdkScreen *screen, goto out; } - g_value_transform (setting, value); - return TRUE; out: