From d4faad8bf6aad8c63aed87a549435dca640319e8 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sun, 9 Jul 2017 09:36:33 +0100 Subject: [PATCH] Replace Gtk3.22 deprecated function gtk_menu_popup --- src/import-export/csv-imp/gnc-csv-gnumeric-popup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/import-export/csv-imp/gnc-csv-gnumeric-popup.c b/src/import-export/csv-imp/gnc-csv-gnumeric-popup.c index c60ea633b1..cbc38df34b 100644 --- a/src/import-export/csv-imp/gnc-csv-gnumeric-popup.c +++ b/src/import-export/csv-imp/gnc-csv-gnumeric-popup.c @@ -211,7 +211,11 @@ gnumeric_popup_menu (GtkMenu *menu, GdkEventButton *event) * instead pass 0. Otherwise bringing up a menu with * the right button will disable clicking on the menu with the left. */ +#if GTK_CHECK_VERSION(3,22,0) + gtk_menu_popup_at_pointer (GTK_MENU(menu), (GdkEvent *) event); +#else gtk_menu_popup (menu, NULL, NULL, NULL, NULL, 0, (event != NULL) ? event->time : gtk_get_current_event_time()); +#endif }