wok-stable view pcmanfm/stuff/view.as.detailed.list.click.bug.patch @ rev 11743
added lynx (2.8.7)
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Tue Feb 21 17:29:08 2012 -0800 (2012-02-21) |
parents | |
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 }