[Xfce4-commits] <thunar:master> Directly popup menus on selected items (bug #3550).
Nick Schermer
noreply at xfce.org
Sun Sep 30 13:52:01 CEST 2012
Updating branch refs/heads/master
to d0513de8a5faa8f2f9436a8b059e674a2deea103 (commit)
from 8b33ac5035afba919d656c7dc18b336a260a606d (commit)
commit d0513de8a5faa8f2f9436a8b059e674a2deea103
Author: Nick Schermer <nick at xfce.org>
Date: Sun Sep 30 13:49:28 2012 +0200
Directly popup menus on selected items (bug #3550).
No need to delay this. It also resulted in no menu
when gtk-menu-popup-delay = 0.
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 7bb2957..f0c3237 100644
--- a/thunar/thunar-details-view.c
+++ b/thunar/thunar-details-view.c
@@ -683,16 +683,11 @@ thunar_details_view_button_press_event (GtkTreeView *tree_view,
gtk_tree_selection_select_path (selection, path);
}
gtk_tree_path_free (path);
-
- /* queue the menu popup */
- thunar_standard_view_queue_popup (THUNAR_STANDARD_VIEW (details_view), event);
- }
- else
- {
- /* open the context menu */
- thunar_standard_view_context_menu (THUNAR_STANDARD_VIEW (details_view), event->button, event->time);
}
+ /* open the context menu */
+ thunar_standard_view_context_menu (THUNAR_STANDARD_VIEW (details_view), event->button, event->time);
+
return TRUE;
}
else if ((event->type == GDK_BUTTON_PRESS || event->type == GDK_2BUTTON_PRESS) && event->button == 2)
More information about the Xfce4-commits
mailing list