diff -r ef01d2c90128 -r 473954dc6b74 ui/common/context.h --- a/ui/common/context.h Mon Jun 17 21:20:58 2024 +0200 +++ b/ui/common/context.h Sun Sep 29 13:32:51 2024 +0200 @@ -77,9 +77,15 @@ char *title; -#if UI_GTK2 || UI_GTK3 +#ifdef UI_GTK +#if GTK_CHECK_VERSION(4, 0, 0) + GActionMap *action_map; +#elif UI_GTK2 || UI_GTK3 GtkAccelGroup *accel_group; +#endif #endif + + ui_callback close_callback; void *close_data;