Skip to content
Snippets Groups Projects
Commit 25979d29 authored by Nick Schermer's avatar Nick Schermer
Browse files

Improve pervious commit.

When right-clicking an item in the details view, directly
show the cwd-menu.
parent 90412c85
No related branches found
No related tags found
No related merge requests found
......@@ -681,15 +681,10 @@ 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))
{
/* select the path on which the user clicked if not selected yet */
/* show the current directory menu if a user right-clicks an
* uselected item in the view. */
if (!gtk_tree_selection_path_is_selected (selection, path))
{
/* 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_selection_unselect_all (selection);
gtk_tree_path_free (path);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment