mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
settings: Reuse a value
We've already gotten the value type, use it.
This commit is contained in:
parent
96d66a11cf
commit
b8e82a1548
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user