forked from AuroraMiddleware/gtk
settings: Avoid a redundant check
g_value_transform already returns whether it was successful or not, so no need to call g_value_type_transformable beforehand.
This commit is contained in:
parent
17053e1f77
commit
389ae3e022
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user