summaryrefslogtreecommitdiff
path: root/plugins/filebrowser
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-05-20 01:01:10 +0200
committerPablo Barciela <[email protected]>2018-05-23 20:01:20 +0200
commit49f8520391f2e9a06c4ea234434bfa8a9b5f85ee (patch)
treed6843062aace2c033be8d94beaee672d38d08596 /plugins/filebrowser
parent4d80780137c159de4c3cef82bcd2dacf82edb6a6 (diff)
downloadpluma-49f8520391f2e9a06c4ea234434bfa8a9b5f85ee.tar.bz2
pluma-49f8520391f2e9a06c4ea234434bfa8a9b5f85ee.tar.xz
avoid deprecated 'gtk_menu_popup'
Diffstat (limited to 'plugins/filebrowser')
-rw-r--r--plugins/filebrowser/pluma-file-browser-widget.c8
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);
}