diff --git a/src/gnome/window-reconcile.c b/src/gnome/window-reconcile.c index d6b6c66c06..ce7fe1dad7 100644 --- a/src/gnome/window-reconcile.c +++ b/src/gnome/window-reconcile.c @@ -945,7 +945,11 @@ do_popup_menu(RecnWindow *recnData, GdkEventButton *event) event_time = gtk_get_current_event_time (); } +#if GTK_CHECK_VERSION(3,22,0) + gtk_menu_popup_at_pointer (GTK_MENU(menu), (GdkEvent *) event); +#else gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, button, event_time); +#endif } diff --git a/src/gnome/window-reconcile2.c b/src/gnome/window-reconcile2.c index 5f5409c397..e01eb5d89a 100644 --- a/src/gnome/window-reconcile2.c +++ b/src/gnome/window-reconcile2.c @@ -908,7 +908,11 @@ do_popup_menu (RecnWindow2 *recnData, GdkEventButton *event) event_time = gtk_get_current_event_time (); } - gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, button, event_time); +#if GTK_CHECK_VERSION(3,22,0) + gtk_menu_popup_at_pointer (GTK_MENU(menu), (GdkEvent *) event); +#else + gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, button, event_time); +#endif }