[Xfce4-commits] <thunar:master> Revert "Improve pervious commit..	(bug #9552).
    Nick Schermer 
    noreply at xfce.org
       
    Sun Dec  2 18:54:01 CET 2012
    
    
  
Updating branch refs/heads/master
         to 632227e17b8ab7b3b8ac892a82535130a36488ea (commit)
       from e8b33a895a69a62f77e75d2e792ad9dc04bb7cb5 (commit)
commit 632227e17b8ab7b3b8ac892a82535130a36488ea
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Dec 2 19:51:41 2012 +0100
    Revert "Improve pervious commit.. (bug #9552).
    
    This reverts commit 25979d292cb965658e680765cc782109e8102966.
 thunar/thunar-details-view.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/thunar/thunar-details-view.c b/thunar/thunar-details-view.c
index c7670b8..a22cec5 100644
--- a/thunar/thunar-details-view.c
+++ b/thunar/thunar-details-view.c
@@ -681,10 +681,15 @@ 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))
         {
-          /* show the current directory menu if a user right-clicks an
-           * uselected item in the view. */
+          /* select the path on which the user clicked if not selected yet */
           if (!gtk_tree_selection_path_is_selected (selection, path))
-            gtk_tree_selection_unselect_all (selection);
+            {
+              /* 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_path_free (path);
         }
 
    
    
More information about the Xfce4-commits
mailing list