From 8c44ea61b80ccc23467aaab6e4a4bcc5cb2873fa Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Thu, 15 Nov 2018 11:16:47 +0100 Subject: keybindings: double click instead one click to edit keyboard shortcuts Closes https://github.com/mate-desktop/mate-control-center/issues/390 --- capplets/keybindings/mate-keybinding-properties.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'capplets/keybindings/mate-keybinding-properties.c') diff --git a/capplets/keybindings/mate-keybinding-properties.c b/capplets/keybindings/mate-keybinding-properties.c index 34b64664..4f257333 100644 --- a/capplets/keybindings/mate-keybinding-properties.c +++ b/capplets/keybindings/mate-keybinding-properties.c @@ -1704,7 +1704,8 @@ start_editing_cb (GtkTreeView *tree_view, GtkTreePath *path; GtkTreeViewColumn *column; - if (event->window != gtk_tree_view_get_bin_window (tree_view)) + if ((event->window != gtk_tree_view_get_bin_window (tree_view)) || + (event->type != GDK_2BUTTON_PRESS)) return FALSE; if (gtk_tree_view_get_path_at_pos (tree_view, -- cgit v1.2.1