diff options
Diffstat (limited to 'plugins/filebrowser/pluma-file-browser-widget.c')
-rw-r--r-- | plugins/filebrowser/pluma-file-browser-widget.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-widget.c b/plugins/filebrowser/pluma-file-browser-widget.c index 7b5f1245..0763e44a 100644 --- a/plugins/filebrowser/pluma-file-browser-widget.c +++ b/plugins/filebrowser/pluma-file-browser-widget.c @@ -1375,13 +1375,9 @@ popup_menu (PlumaFileBrowserWidget * obj, GdkEventButton * event, GtkTreeModel * } } - gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, - event->button, event->time); + gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL); } else { - gtk_menu_popup (GTK_MENU (menu), NULL, NULL, - pluma_utils_menu_position_under_tree_view, - obj->priv->treeview, 0, - gtk_get_current_event_time ()); + menu_popup_at_treeview_selection (menu, GTK_WIDGET (obj->priv->treeview)); gtk_menu_shell_select_first (GTK_MENU_SHELL (menu), FALSE); } |