Updating branch refs/heads/master
         to f44c1f46dd9f66e05da10e893ba9fb1ec1cd95f8 (commit)
       from d94e6827ad77742d83235d0fd83dd284f7ffda1a (commit)

commit f44c1f46dd9f66e05da10e893ba9fb1ec1cd95f8
Author: Lionel Le Folgoc <[email protected]>
Date:   Sun Jun 6 18:21:14 2010 +0200

    Fix a warning when applying the settings

 xfce4-settings-helper/displays.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xfce4-settings-helper/displays.c b/xfce4-settings-helper/displays.c
index 949a447..6a3088b 100644
--- a/xfce4-settings-helper/displays.c
+++ b/xfce4-settings-helper/displays.c
@@ -528,7 +528,7 @@ xfce_displays_helper_channel_property_changed 
(XfconfChannel      *channel,
     XfceDisplayLayout  layout;
 #endif
 
-    if (G_UNLIKELY (value && strcmp (property_name, "/Schemes/Apply") == 0))
+    if (G_UNLIKELY (G_VALUE_HOLDS_STRING(value) && strcmp (property_name, 
"/Schemes/Apply") == 0))
     {
         /* get the layout of the scheme */
         property = g_strdup_printf ("/%s/Layout", g_value_get_string (value));
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to