wok-current view pcmanfm-legacy/stuff/view.as.detailed.list.click.bug.patch @ rev 19142
Down ffmpeg (2.8.7)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 19 12:09:28 2016 +0200 (2016-05-19) |
parents | 9336912f1ef1 |
children |
line source
1 --- src/exo/exo-tree-view.c.ORIG
2 +++ src/exo/exo-tree-view.c
3 @@ -364,20 +364,11 @@
4 tree_view->priv->button_release_activates = (tree_view->priv->single_click && event->type == GDK_BUTTON_PRESS && event->button == 1
5 && (event->state & gtk_accelerator_get_default_mod_mask ()) == 0);
6 }
7 -
8 - /* unfortunately GtkTreeView will unselect rows except the clicked one,
9 - * which makes dragging from a GtkTreeView problematic. That's why we
10 - * remember the selected paths here and restore them later.
11 - */
12 +
13 if (event->type == GDK_BUTTON_PRESS && (event->state & gtk_accelerator_get_default_mod_mask ()) == 0
14 && path != NULL && gtk_tree_selection_path_is_selected (selection, path))
15 {
16 - /* if no custom select function is set, we simply use exo_noop_false here,
17 - * to tell the tree view that it may not alter the selection.
18 - */
19 - if (G_LIKELY (selection->user_func == NULL))
20 - gtk_tree_selection_set_select_function (selection, (GtkTreeSelectionFunc) exo_noop_false, NULL, NULL);
21 - else
22 +
23 selected_paths = gtk_tree_selection_get_selected_rows (selection, NULL);
24 }