summaryrefslogtreecommitdiff
path: root/plugins/gtkui/hotkeys.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-13 15:48:34 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-13 15:48:34 +0200
commit2cdd465d542c0373c0d8c9fe8d8b5d3f7f6e3087 (patch)
tree4ccce209b712d16f71f498c4c334d780bd02ce06 /plugins/gtkui/hotkeys.c
parent934a10b9a5ea67734a74a44361868654fc15297d (diff)
gtkui: fixed saving removed hotkeys; fixed remove hotkey gui behavior
Diffstat (limited to 'plugins/gtkui/hotkeys.c')
-rw-r--r--plugins/gtkui/hotkeys.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/gtkui/hotkeys.c b/plugins/gtkui/hotkeys.c
index afe4197d..9067a5e9 100644
--- a/plugins/gtkui/hotkeys.c
+++ b/plugins/gtkui/hotkeys.c
@@ -203,7 +203,7 @@ static void
hotkeys_save (void) {
GtkWidget *hotkeys = lookup_widget (prefwin, "hotkeys_list");
GtkListStore *hkstore = GTK_LIST_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (hotkeys)));
-// deadbeef->conf_remove_items ("hotkey.key");
+ deadbeef->conf_remove_items ("hotkey.key");
GtkTreePath *path = gtk_tree_path_new_first ();
GtkTreeIter iter;
@@ -566,6 +566,12 @@ on_hotkey_remove_clicked (GtkButton *button,
GtkTreeIter iter;
gtk_tree_model_get_iter (GTK_TREE_MODEL (hkstore), &iter, path);
gtk_list_store_remove (hkstore, &iter);
+ set_button_action_label (NULL, 0, lookup_widget (prefwin, "hotkeys_actions"));
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (lookup_widget (prefwin, "hotkey_is_global")), FALSE);
+ gtk_button_set_label (GTK_BUTTON (lookup_widget (prefwin, "hotkeys_set_key")), _("<Not set>"));
+ gtk_widget_set_sensitive (lookup_widget (prefwin, "hotkeys_actions"), FALSE);
+ gtk_widget_set_sensitive (lookup_widget (prefwin, "hotkey_is_global"), FALSE);
+ gtk_widget_set_sensitive (lookup_widget (prefwin, "hotkeys_set_key"), FALSE);
gtkui_hotkeys_changed = 1;
}