summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
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");