mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Replace Gtk3.22 deprecated function gtk_menu_popup
This commit is contained in:
parent
b52a298b0d
commit
d4faad8bf6
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user