diff -r 4918f9132552 -r 450a813dc2a5 ui/common/context.h --- a/ui/common/context.h Thu Sep 26 22:43:13 2024 +0200 +++ b/ui/common/context.h Sun Sep 29 11:29:37 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;