summaryrefslogtreecommitdiff
path: root/src/caja-side-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-side-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-side-pane.c')
-rw-r--r--src/caja-side-pane.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/caja-side-pane.c b/src/caja-side-pane.c
index e22f517a..fb25b4fb 100644
--- a/src/caja-side-pane.c
+++ b/src/caja-side-pane.c
@@ -228,9 +228,11 @@ select_button_press_callback (GtkWidget *widget,
gtk_widget_grab_focus (widget);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
- gtk_menu_popup (GTK_MENU (side_pane->details->menu),
- NULL, NULL, menu_position_under, widget,
- event->button, event->time);
+ gtk_menu_popup_at_widget (GTK_MENU (side_pane->details->menu),
+ widget,
+ GDK_GRAVITY_SOUTH_WEST,
+ GDK_GRAVITY_NORTH_WEST,
+ (const GdkEvent*) event);
return TRUE;
}
@@ -252,9 +254,11 @@ select_button_key_press_callback (GtkWidget *widget,
event->keyval == GDK_KEY_KP_Enter)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);
- gtk_menu_popup (GTK_MENU (side_pane->details->menu),
- NULL, NULL, menu_position_under, widget,
- 1, event->time);
+ gtk_menu_popup_at_widget (GTK_MENU (side_pane->details->menu),
+ widget,
+ GDK_GRAVITY_SOUTH_WEST,
+ GDK_GRAVITY_NORTH_WEST,
+ (const GdkEvent*) event);
return TRUE;
}