[Xfce4-commits] [xfce/thunar] 06/13: Use only open selection instead of open action with KEY_Up and KEY_Down

noreply at xfce.org noreply at xfce.org
Tue May 12 09:58:19 CEST 2015


This is an automated email from the git hooks/post-receive script.

hjudt pushed a commit to branch master
in repository xfce/thunar.

commit 31d5eac92bab78820b854f716c89ee2adf1d9bbd
Author: Harald Judt <h.judt at gmx.at>
Date:   Sat May 9 13:17:24 2015 +0200

    Use only open selection instead of open action with KEY_Up and KEY_Down
    
    If the user navigates the treeview using the up and down keys and a
    device is not mounted, then it will be mounted. It is better for user
    experience to only mount the device when the user expands the path
    with Key_Right, otherwise some items in the treeview might not even
    be accessible without accidentally mounting other devices.
---
 thunar/thunar-tree-view.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/thunar/thunar-tree-view.c b/thunar/thunar-tree-view.c
index 5d823c4..5d4d359 100644
--- a/thunar/thunar-tree-view.c
+++ b/thunar/thunar-tree-view.c
@@ -805,7 +805,7 @@ thunar_tree_view_key_press_event(GtkWidget   *widget,
       /* sync with new tree view selection */
       gtk_tree_path_free (path);
       gtk_tree_view_get_cursor (GTK_TREE_VIEW (tree_view), &path, NULL);
-      thunar_tree_view_action_open (tree_view);
+      thunar_tree_view_open_selection (tree_view);
 
       stopPropagation = TRUE;
       break;
@@ -819,7 +819,7 @@ thunar_tree_view_key_press_event(GtkWidget   *widget,
       else /* if branch is already collapsed then move to parent */
         if (gtk_tree_path_get_depth (path) > 1 && gtk_tree_path_up (path))
           gtk_tree_view_set_cursor (GTK_TREE_VIEW (tree_view), path, NULL, FALSE);
-      thunar_tree_view_action_open (tree_view);
+      thunar_tree_view_open_selection (tree_view);
 
       stopPropagation = TRUE;
       break;
@@ -829,7 +829,6 @@ thunar_tree_view_key_press_event(GtkWidget   *widget,
       /* if branch is not expanded then expand it */
       if (!gtk_tree_view_row_expanded (GTK_TREE_VIEW (tree_view), path))
         gtk_tree_view_expand_row (GTK_TREE_VIEW (tree_view), path, FALSE);
-
       else /* if branch is already expanded then move to first child */
         {
           gtk_tree_path_down (path);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list