[Xfce4-commits] <xfce4-settings:xrandr-display-settings> Only unbind when something was bound.
Jérôme Guelfucci
noreply at xfce.org
Sun Jul 4 12:16:05 CEST 2010
Updating branch refs/heads/xrandr-display-settings
to e37271e536a8e4a361c37b0b30817c57b45ea596 (commit)
from a9bdb69e6cec954e46948d5dc6b5f59d909af646 (commit)
commit e37271e536a8e4a361c37b0b30817c57b45ea596
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