summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-links.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-sidebar-links.c')
-rw-r--r--shell/ev-sidebar-links.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c
index b252fbb2..a4473504 100644
--- a/shell/ev-sidebar-links.c
+++ b/shell/ev-sidebar-links.c
@@ -347,10 +347,7 @@ popup_menu_cb (GtkWidget *treeview, EvSidebarLinks *sidebar)
{
GtkMenu *menu = build_popup_menu (sidebar);
- gtk_menu_popup (menu, NULL, NULL,
- ev_gui_menu_position_tree_selection,
- sidebar->priv->tree_view, 0,
- gtk_get_current_event_time ());
+ gtk_menu_popup_at_pointer (menu, NULL);
gtk_menu_shell_select_first (GTK_MENU_SHELL (menu), FALSE);
}
@@ -369,9 +366,8 @@ button_press_cb (GtkWidget *treeview,
NULL, NULL, NULL)) {
gtk_tree_view_set_cursor (GTK_TREE_VIEW (treeview),
path, NULL, FALSE);
- gtk_menu_popup (build_popup_menu (sidebar), NULL,
- NULL, NULL, NULL, event->button,
- gtk_get_current_event_time ());
+ gtk_menu_popup_at_pointer (build_popup_menu (sidebar),
+ (const GdkEvent*) event);
gtk_tree_path_free (path);
return TRUE;