Replace Gtk3.22 deprecated function gtk_menu_popup

This commit is contained in:
Robert Fewell 2017-07-09 09:36:33 +01:00 committed by Geert Janssens
parent b52a298b0d
commit d4faad8bf6

View File

@ -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
}