From 95efde5e560a554dd4750ae074996e15037a0cd1 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Mon, 18 Feb 2013 22:46:49 +0100 Subject: keybindings: Dont use removed GSettings allowed-keys --- capplets/keybindings/mate-keybinding-properties.c | 12 ------------ 1 file changed, 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"); -- cgit v1.2.1