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
9a5b0ff972
commit
b52a298b0d
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
@ -908,7 +908,11 @@ do_popup_menu (RecnWindow2 *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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user