[Xfce4-commits] [xfce/thunar] 06/06: Let the tree view keep the focus when clicking on an item (bug #11863)

noreply at xfce.org noreply at xfce.org
Sun May 3 15:00:18 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 3ad690a7fdc1751f01ee9c7be458ecf29ea0c711
Author: Harald Judt <h.judt at gmx.at>
Date:   Sat May 2 20:20:12 2015 +0200

    Let the tree view keep the focus when clicking on an item (bug #11863)
    
    When clicking on a tree view item, the main view will open it and thus
    grab the focus. This focus change may be a bit unexpected to the user,
    but trivial to fix, so make the tree view keep the focus after such a
    button click.
---
 thunar/thunar-tree-view.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/thunar/thunar-tree-view.c b/thunar/thunar-tree-view.c
index ae146dd..fc2f025 100644
--- a/thunar/thunar-tree-view.c
+++ b/thunar/thunar-tree-view.c
@@ -770,6 +770,7 @@ thunar_tree_view_button_release_event (GtkWidget      *widget,
           else
             thunar_tree_view_action_open_in_new_window (view);
         }
+      gtk_widget_grab_focus (widget);
     }
 
   /* reset the pressed button state */

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


More information about the Xfce4-commits mailing list