summaryrefslogtreecommitdiff
path: root/src/caja-navigation-window-pane.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-05-05 21:23:26 +0200
committerlukefromdc <[email protected]>2018-05-07 16:04:11 -0400
commitddf6f38db4e842abecd4f2ee77012050822b3775 (patch)
tree385890e85b2de303f8b1897f72de3b777ff6532b /src/caja-navigation-window-pane.c
parentded490e1bc432210e6006e94273cc160a0af8e75 (diff)
downloadcaja-ddf6f38db4e842abecd4f2ee77012050822b3775.tar.bz2
caja-ddf6f38db4e842abecd4f2ee77012050822b3775.tar.xz
Replace deprecated gtk_menu_popup
Replace deprecated gtk_menu_popup in eel-editable-label,caja-dnd, emblem-sidebar,caja-side-pane, fm-tree-view, caja-navigation-window-pane, and caja-zoom-control
Diffstat (limited to 'src/caja-navigation-window-pane.c')
-rw-r--r--src/caja-navigation-window-pane.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/caja-navigation-window-pane.c b/src/caja-navigation-window-pane.c
index aa700830..84ae7f11 100644
--- a/src/caja-navigation-window-pane.c
+++ b/src/caja-navigation-window-pane.c
@@ -358,7 +358,6 @@ notebook_popup_menu_show (CajaNavigationWindowPane *pane,
{
GtkWidget *popup;
GtkWidget *item;
- int button, event_time;
gboolean can_move_left, can_move_right;
CajaNotebook *notebook;
@@ -409,24 +408,13 @@ notebook_popup_menu_show (CajaNavigationWindowPane *pane,
gtk_widget_show_all (popup);
- if (event)
- {
- button = event->button;
- event_time = event->time;
- }
- else
- {
- button = 0;
- event_time = gtk_get_current_event_time ();
- }
-
/* TODO is this correct? */
gtk_menu_attach_to_widget (GTK_MENU (popup),
pane->notebook,
NULL);
- gtk_menu_popup (GTK_MENU (popup), NULL, NULL, NULL, NULL,
- button, event_time);
+ gtk_menu_popup_at_pointer (GTK_MENU (popup),
+ (const GdkEvent*) event);
}
/* emitted when the user clicks the "close" button of tabs */