summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-11-15 11:16:47 +0100
committerlukefromdc <[email protected]>2018-11-18 15:11:30 -0500
commite5c3e4f0e083481d490de00d9094cfe7197b4044 (patch)
tree756b40c5ae03847f31fb0d16e918b165bf01774b
parente01defa630a00fdbcf06ad30b6a88763a45df3ca (diff)
downloadmate-control-center-e5c3e4f0e083481d490de00d9094cfe7197b4044.tar.bz2
mate-control-center-e5c3e4f0e083481d490de00d9094cfe7197b4044.tar.xz
keybindings: double click instead one click to edit keyboard shortcuts
Closes https://github.com/mate-desktop/mate-control-center/issues/390
-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 b9f59e14..d53f4340 100644
--- a/capplets/keybindings/mate-keybinding-properties.c
+++ b/capplets/keybindings/mate-keybinding-properties.c
@@ -1705,7 +1705,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,