summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-02-18 22:46:49 +0100
committerStefano Karapetsas <[email protected]>2013-02-18 22:46:49 +0100
commit95efde5e560a554dd4750ae074996e15037a0cd1 (patch)
tree0b2807dd0072bb70a6102c45b1e711fc37dce0cf /capplets
parent5a612bfd9d5029936a6dc672030701f222e6817d (diff)
downloadmate-control-center-95efde5e560a554dd4750ae074996e15037a0cd1.tar.bz2
mate-control-center-95efde5e560a554dd4750ae074996e15037a0cd1.tar.xz
keybindings: Dont use removed GSettings allowed-keys
Diffstat (limited to 'capplets')
-rw-r--r--capplets/keybindings/mate-keybinding-properties.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/capplets/keybindings/mate-keybinding-properties.c b/capplets/keybindings/mate-keybinding-properties.c
index 478aa1c8..0b692ad3 100644
--- a/capplets/keybindings/mate-keybinding-properties.c
+++ b/capplets/keybindings/mate-keybinding-properties.c
@@ -1851,8 +1851,6 @@ setup_dialog (GtkBuilder *builder, GSettings *marco_settings)
GtkWidget *widget;
GtkTreeView *treeview;
GtkTreeSelection *selection;
- GSettings *keybindings_settings;
- gchar **allowed_keys;
treeview = GTK_TREE_VIEW (gtk_builder_get_object (builder,
"shortcut_treeview"));
@@ -1917,16 +1915,6 @@ setup_dialog (GtkBuilder *builder, GSettings *marco_settings)
G_CALLBACK (selection_changed),
_gtk_builder_get_widget (builder, "remove-button"));
- keybindings_settings = g_settings_new ("org.mate.keybindings");
- allowed_keys = g_settings_get_strv (keybindings_settings, "allowed-keys");
- if (allowed_keys != NULL && allowed_keys[0] != NULL)
- {
- g_strfreev (allowed_keys);
- gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "add-button"),
- FALSE);
- }
- g_object_unref (keybindings_settings);
-
/* setup the custom shortcut dialog */
custom_shortcut_dialog = _gtk_builder_get_widget (builder,
"custom-shortcut-dialog");