diff options
author | Stefano Karapetsas <[email protected]> | 2013-02-17 20:14:20 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-02-17 20:14:20 +0100 |
commit | 5a612bfd9d5029936a6dc672030701f222e6817d (patch) | |
tree | e3260e7bc8cc0ca928cf57d65c24776a37b1dd35 /capplets | |
parent | b085a04a2d3bd514f9943ee013206dc4b2f220b4 (diff) | |
download | mate-control-center-5a612bfd9d5029936a6dc672030701f222e6817d.tar.bz2 mate-control-center-5a612bfd9d5029936a6dc672030701f222e6817d.tar.xz |
Disabled shortcuts have "disabled" as value in GSettings, not an empty string
Diffstat (limited to 'capplets')
-rw-r--r-- | capplets/keybindings/mate-keybinding-properties.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |