[Xfce4-commits] <thunar:nick/on-demand-content-type> Improve pervious commit.
Nick Schermer
noreply at xfce.org
Wed Nov 14 21:30:02 CET 2012
Updating branch refs/heads/nick/on-demand-content-type
to 3cf90bd6fcdb399975b587c2c94569e989970827 (commit)
from 90412c8551789050dfee5461e14be7185d3fd7f4 (commit)
commit 3cf90bd6fcdb399975b587c2c94569e989970827
Author: Nick Schermer <nick at xfce.org>
Date: Tue Nov 13 20:12:44 2012 +0100
Improve pervious commit.
When right-clicking an item in the details view, directly
show the cwd-menu.
thunar/thunar-details-view.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/thunar/thunar-details-view.c b/thunar/thunar-details-view.c
index a22cec5..c7670b8 100644
--- a/thunar/thunar-details-view.c
+++ b/thunar/thunar-details-view.c
@@ -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);
}
More information about the Xfce4-commits
mailing list