From b52a298b0df995c304bce6c8fb46fdc82c7d1681 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sun, 9 Jul 2017 09:35:12 +0100 Subject: [PATCH] Replace Gtk3.22 deprecated function gtk_menu_popup --- src/gnome/window-reconcile.c | 4 ++++ src/gnome/window-reconcile2.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 }