[Xfce4-commits] <xfce4-settings:master> Only unbind when something was bound.

Nick Schermer noreply at xfce.org
Sat Aug 28 23:05:08 CEST 2010


Updating branch refs/heads/master
         to c8e6b7e7ace6950e7ddda5648574f9a0225e1f4c (commit)
       from f5c10bb8280e44d6200c91a12d6cb7091343b72e (commit)

commit c8e6b7e7ace6950e7ddda5648574f9a0225e1f4c
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Sun Jul 4 12:10:38 2010 +0200

    Only unbind when something was bound.

 dialogs/display-settings/main.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index 6e6ffad..b561be2 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -1499,7 +1499,10 @@ main (gint argc, gchar **argv)
         err1:
 
         /* release the channel */
-        xfconf_g_property_unbind_all (G_OBJECT (display_channel));
+#ifdef HAS_RANDR_ONE_POINT_TWO
+        if (bound_to_channel)
+            xfconf_g_property_unbind_all (G_OBJECT (display_channel));
+#endif
         g_object_unref (G_OBJECT (display_channel));
     }
 



More information about the Xfce4-commits mailing list