summaryrefslogtreecommitdiff
path: root/capplets/keybindings
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-11-15 11:16:47 +0100
committerZenWalker <[email protected]>2018-11-17 01:21:00 +0100
commit8c44ea61b80ccc23467aaab6e4a4bcc5cb2873fa (patch)
treecc655f789b92b589659423dbc6ce05f5f73ca38c /capplets/keybindings
parentba5a88c4843d97b815a431b15ae11230301a2508 (diff)
downloadmate-control-center-8c44ea61b80ccc23467aaab6e4a4bcc5cb2873fa.tar.bz2
mate-control-center-8c44ea61b80ccc23467aaab6e4a4bcc5cb2873fa.tar.xz
keybindings: double click instead one click to edit keyboard shortcuts
Closes https://github.com/mate-desktop/mate-control-center/issues/390
Diffstat (limited to 'capplets/keybindings')
-rw-r--r--capplets/keybindings/mate-keybinding-properties.c3
1 files changed, 2 insertions, 1 deletions
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,