Skip to content

Commit

Permalink
ev-sidebar-bookmarks: replace deprecated gtk_menu_popup function
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed May 10, 2018
1 parent eac71e1 commit be5fadc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions shell/ev-sidebar-bookmarks.c
Expand Up @@ -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))
Expand All @@ -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;
}

Expand Down

0 comments on commit be5fadc

Please sign in to comment.