summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-bookmarks.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-05-04 15:50:21 +0200
committerraveit65 <[email protected]>2018-05-10 22:45:31 +0200
commitbe5fadcdce164bf7b4cde5487dd0c8837a7efb9d (patch)
tree4d2945f74ecd6bfe96f7be49404acc5406f3a1f1 /shell/ev-sidebar-bookmarks.c
parenteac71e1a1a061debeefbd701d7d9f1bfb690c322 (diff)
downloadatril-be5fadcdce164bf7b4cde5487dd0c8837a7efb9d.tar.bz2
atril-be5fadcdce164bf7b4cde5487dd0c8837a7efb9d.tar.xz
ev-sidebar-bookmarks: replace deprecated gtk_menu_popup function
Diffstat (limited to 'shell/ev-sidebar-bookmarks.c')
-rw-r--r--shell/ev-sidebar-bookmarks.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/shell/ev-sidebar-bookmarks.c b/shell/ev-sidebar-bookmarks.c
index dc3752fb..e94c6352 100644
--- a/shell/ev-sidebar-bookmarks.c
+++ b/shell/ev-sidebar-bookmarks.c
@@ -331,6 +331,7 @@ ev_sidebar_bookmarks_popup_menu_show (EvSidebarBookmarks *sidebar_bookmarks,
EvSidebarBookmarksPrivate *priv = sidebar_bookmarks->priv;
GtkTreeView *tree_view = GTK_TREE_VIEW (sidebar_bookmarks->priv->tree_view);
GtkTreeSelection *selection = gtk_tree_view_get_selection (tree_view);
+ GdkEvent *event;
if (keyboard_mode) {
if (!gtk_tree_selection_get_selected (selection, NULL, NULL))
@@ -354,12 +355,7 @@ ev_sidebar_bookmarks_popup_menu_show (EvSidebarBookmarks *sidebar_bookmarks,
if (!priv->popup)
priv->popup = gtk_ui_manager_get_widget (priv->ui_manager, "/BookmarksPopup");
- gtk_menu_popup (GTK_MENU (priv->popup),
- NULL, NULL,
- keyboard_mode ? ev_gui_menu_position_tree_selection : NULL,
- keyboard_mode ? tree_view : NULL,
- keyboard_mode ? 0 : 3,
- gtk_get_current_event_time ());
+ gtk_menu_popup_at_pointer (GTK_MENU (priv->popup), (const GdkEvent*) event);
return TRUE;
}