summaryrefslogtreecommitdiff
path: root/plugins/gtkui
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-14 21:55:57 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-14 21:55:57 +0100
commit366a4c67e495562c60df73bd3999c214dd37ca3c (patch)
treee208201b22040972fa228c87e8969b8195c15504 /plugins/gtkui
parentb93c8913c5c13906c13ae62ffe3c3a3b76673396 (diff)
gtkui: avoid marking hotkeys as changed on selection
Diffstat (limited to 'plugins/gtkui')
-rw-r--r--plugins/gtkui/hotkeys.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/gtkui/hotkeys.c b/plugins/gtkui/hotkeys.c
index f62aa36e..10caec85 100644
--- a/plugins/gtkui/hotkeys.c
+++ b/plugins/gtkui/hotkeys.c
@@ -504,6 +504,7 @@ on_hotkeys_list_cursor_changed (GtkTreeView *treeview,
gtk_tree_view_get_cursor (treeview, &path, NULL);
GtkTreeModel *model = gtk_tree_view_get_model (treeview);
GtkTreeIter iter;
+ int changed = gtkui_hotkeys_changed;
if (path && gtk_tree_model_get_iter (model, &iter, path)) {
GtkWidget *actions = lookup_widget (prefwin, "hotkeys_actions");
gtk_widget_set_sensitive (actions, TRUE);
@@ -535,6 +536,7 @@ on_hotkeys_list_cursor_changed (GtkTreeView *treeview,
if (path) {
gtk_tree_path_free (path);
}
+ gtkui_hotkeys_changed = changed;
}
@@ -568,7 +570,7 @@ on_hotkey_remove_clicked (GtkButton *button,
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_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);