[Xfce4-commits] <thunar:master> Control+right-click will show menu if current dir in details (bug #3386).

Nick Schermer noreply at xfce.org
Mon Nov 12 20:34:01 CET 2012


Updating branch refs/heads/master
         to 90412c8551789050dfee5461e14be7185d3fd7f4 (commit)
       from ed2d27e40f80e73c92779e9a1b46ceb31037b0ae (commit)

commit 90412c8551789050dfee5461e14be7185d3fd7f4
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Nov 12 20:29:42 2012 +0100

    Control+right-click will show menu if current dir in details (bug #3386).
    
    Instead of extending the selection, use Ctrl + 3rd click to show
    the current directory menu instead of the item menu when clicking
    an unselected item.

 thunar/thunar-details-view.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/thunar/thunar-details-view.c b/thunar/thunar-details-view.c
index b6a5f3d..a22cec5 100644
--- a/thunar/thunar-details-view.c
+++ b/thunar/thunar-details-view.c
@@ -684,10 +684,11 @@ thunar_details_view_button_press_event (GtkTreeView       *tree_view,
           /* select the path on which the user clicked if not selected yet */
           if (!gtk_tree_selection_path_is_selected (selection, path))
             {
-              /* we don't unselect all other items if Control is active */
+              /* 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_unselect_all (selection);
-              gtk_tree_selection_select_path (selection, path);
+                gtk_tree_selection_select_path (selection, path);
             }
           gtk_tree_path_free (path);
         }


More information about the Xfce4-commits mailing list