[gnome-control-center] Fix zombie bindings appearing after deleting custom shortcuts
- From: Jens Granseuer <jensg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Fix zombie bindings appearing after deleting custom shortcuts
- Date: Sat, 24 Oct 2009 12:02:18 +0000 (UTC)
commit 3f671fdceb310818b40cb64b3a9f08204ba95828
Author: Jens Granseuer <jensgr gmx net>
Date: Sat Oct 24 13:55:19 2009 +0200
Fix zombie bindings appearing after deleting custom shortcuts
Make GConf sync after deleting a custom binding so that the removed
directory actually gets pruned and doesn't come back when restarting
the application (bug 596351).
capplets/keybindings/gnome-keybinding-properties.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/capplets/keybindings/gnome-keybinding-properties.c b/capplets/keybindings/gnome-keybinding-properties.c
index 0b62f8c..42112d0 100644
--- a/capplets/keybindings/gnome-keybinding-properties.c
+++ b/capplets/keybindings/gnome-keybinding-properties.c
@@ -1458,6 +1458,10 @@ remove_custom_shortcut (GtkTreeModel *model, GtkTreeIter *iter)
base = g_path_get_dirname (key->gconf_key);
gconf_client_recursive_unset (client, base, 0, NULL);
g_free (base);
+ /* suggest sync now so the unset directory actually gets dropped;
+ * if we don't do this we may end up with 'zombie' shortcuts when
+ * restarting the app */
+ gconf_client_suggest_sync (client, NULL);
g_object_unref (client);
g_free (key->gconf_key);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]