summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-links.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-05-04 16:45:16 +0200
committerraveit65 <[email protected]>2018-05-10 22:45:31 +0200
commit0fd21246a8cc827150dc59244bb419fe594a1e42 (patch)
treeec607bbb04e317b765a94db024b84284e4017d97 /shell/ev-sidebar-links.c
parentbe5fadcdce164bf7b4cde5487dd0c8837a7efb9d (diff)
downloadatril-0fd21246a8cc827150dc59244bb419fe594a1e42.tar.bz2
atril-0fd21246a8cc827150dc59244bb419fe594a1e42.tar.xz
ev-sidebar-links: replace deprecated gtk_menu_popup function
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;