Commit 3ad690a7 authored by Harald Judt's avatar Harald Judt

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.
parent e42fbf41
...@@ -770,6 +770,7 @@ thunar_tree_view_button_release_event (GtkWidget *widget, ...@@ -770,6 +770,7 @@ thunar_tree_view_button_release_event (GtkWidget *widget,
else else
thunar_tree_view_action_open_in_new_window (view); thunar_tree_view_action_open_in_new_window (view);
} }
gtk_widget_grab_focus (widget);
} }
/* reset the pressed button state */ /* reset the pressed button state */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment