Updating branch refs/heads/master
to 25979d292cb965658e680765cc782109e8102966 (commit)
from 90412c8551789050dfee5461e14be7185d3fd7f4 (commit)
commit 25979d292cb965658e680765cc782109e8102966
Author: Nick Schermer <[email protected]>
Date: Tue Nov 13 20:12:44 2012 +0100
Improve pervious commit.
When right-clicking an item in the details view, directly
show the cwd-menu.
thunar/thunar-details-view.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/thunar/thunar-details-view.c b/thunar/thunar-details-view.c
index a22cec5..c7670b8 100644
--- a/thunar/thunar-details-view.c
+++ b/thunar/thunar-details-view.c
@@ -681,15 +681,10 @@ thunar_details_view_button_press_event (GtkTreeView
*tree_view,
selection = gtk_tree_view_get_selection (tree_view);
if (gtk_tree_view_get_path_at_pos (tree_view, event->x, event->y, &path,
NULL, NULL, NULL))
{
- /* select the path on which the user clicked if not selected yet */
+ /* show the current directory menu if a user right-clicks an
+ * uselected item in the view. */
if (!gtk_tree_selection_path_is_selected (selection, path))
- {
- /* only select an item if Control is not pressed, else we
- * use this to popup the current directory actionW */
- gtk_tree_selection_unselect_all (selection);
- if ((event->state & GDK_CONTROL_MASK) == 0)
- gtk_tree_selection_select_path (selection, path);
- }
+ gtk_tree_selection_unselect_all (selection);
gtk_tree_path_free (path);
}
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits