[gtk+] settings: Reuse a value
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] settings: Reuse a value
- Date: Wed, 9 Sep 2015 10:33:19 +0000 (UTC)
commit b8e82a1548f99a40f1bce94f3e9bcb65ddaca3f0
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 8 20:27:50 2015 -0400
settings: Reuse a value
We've already gotten the value type, use it.
gtk/gtksettings.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 36a450c..9fc1d38 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]