diff options
author | Pablo Barciela <[email protected]> | 2018-11-15 11:16:47 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2018-11-17 01:21:00 +0100 |
commit | 8c44ea61b80ccc23467aaab6e4a4bcc5cb2873fa (patch) | |
tree | cc655f789b92b589659423dbc6ce05f5f73ca38c /capplets/keybindings/mate-keybinding-properties.c | |
parent | ba5a88c4843d97b815a431b15ae11230301a2508 (diff) | |
download | mate-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/mate-keybinding-properties.c')
-rw-r--r-- | capplets/keybindings/mate-keybinding-properties.c | 3 |
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, |