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