File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,7 @@ ev_sidebar_bookmarks_popup_menu_show (EvSidebarBookmarks *sidebar_bookmarks,
331331 EvSidebarBookmarksPrivate * priv = sidebar_bookmarks -> priv ;
332332 GtkTreeView * tree_view = GTK_TREE_VIEW (sidebar_bookmarks -> priv -> tree_view );
333333 GtkTreeSelection * selection = gtk_tree_view_get_selection (tree_view );
334+ GdkEvent * event ;
334335
335336 if (keyboard_mode ) {
336337 if (!gtk_tree_selection_get_selected (selection , NULL , NULL ))
@@ -354,12 +355,7 @@ ev_sidebar_bookmarks_popup_menu_show (EvSidebarBookmarks *sidebar_bookmarks,
354355 if (!priv -> popup )
355356 priv -> popup = gtk_ui_manager_get_widget (priv -> ui_manager , "/BookmarksPopup" );
356357
357- gtk_menu_popup (GTK_MENU (priv -> popup ),
358- NULL , NULL ,
359- keyboard_mode ? ev_gui_menu_position_tree_selection : NULL ,
360- keyboard_mode ? tree_view : NULL ,
361- keyboard_mode ? 0 : 3 ,
362- gtk_get_current_event_time ());
358+ gtk_menu_popup_at_pointer (GTK_MENU (priv -> popup ), (const GdkEvent * ) event );
363359 return TRUE;
364360}
365361
You can’t perform that action at this time.
0 commit comments