From 5a612bfd9d5029936a6dc672030701f222e6817d Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sun, 17 Feb 2013 20:14:20 +0100 Subject: Disabled shortcuts have "disabled" as value in GSettings, not an empty string --- capplets/keybindings/mate-keybinding-properties.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'capplets/keybindings') diff --git a/capplets/keybindings/mate-keybinding-properties.c b/capplets/keybindings/mate-keybinding-properties.c index fded3998..478aa1c8 100644 --- a/capplets/keybindings/mate-keybinding-properties.c +++ b/capplets/keybindings/mate-keybinding-properties.c @@ -1390,7 +1390,7 @@ accel_cleared_callback (GtkCellRendererText *cell, /* Unset the key */ g_settings_set_string (key_entry->settings, key_entry->gsettings_key, - ""); + "disabled"); } static void @@ -1630,7 +1630,7 @@ add_custom_shortcut (GtkTreeView *tree_view, /* store in gsettings */ key_entry->settings = g_settings_new_with_path (CUSTOM_KEYBINDING_SCHEMA, key_entry->gsettings_path); - g_settings_set_string (key_entry->settings, key_entry->gsettings_key, ""); + g_settings_set_string (key_entry->settings, key_entry->gsettings_key, "disabled"); g_settings_set_string (key_entry->settings, key_entry->desc_gsettings_key, key_entry->description); g_settings_set_string (key_entry->settings, key_entry->cmd_gsettings_key, key_entry->command); -- cgit v1.2.1