mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add a gtk version check for gnc-cell-renderer-popup
The event variable is only used when it is Gtk3.22 or higher
This commit is contained in:
parent
2c23f78d8c
commit
583935cc2b
@ -223,7 +223,9 @@ gcrp_grab_on_window (GdkWindow *window,
|
||||
#endif
|
||||
GdkDevice *device;
|
||||
|
||||
GdkEvent *event = gtk_get_current_event ();
|
||||
#if GTK_CHECK_VERSION(3,22,0)
|
||||
GdkEvent *event = gtk_get_current_event ();
|
||||
#endif
|
||||
|
||||
#if GTK_CHECK_VERSION(3,20,0)
|
||||
seat = gdk_display_get_default_seat (display);
|
||||
|
Loading…
Reference in New Issue
Block a user