# HG changeset patch # User Olaf Wintermann # Date 1708104814 -3600 # Node ID a0ea718ab1d86444731e577277ef48e6ccaf7239 # Parent 81778b9589d0a53fec42b32323ec45083db204ed fix add_menuitem_widget passing wrong list type to uic_add_group_widget diff -r 81778b9589d0 -r a0ea718ab1d8 ui/gtk/menu.c --- a/ui/gtk/menu.c Thu Feb 15 21:33:08 2024 +0100 +++ b/ui/gtk/menu.c Fri Feb 16 18:33:34 2024 +0100 @@ -121,7 +121,10 @@ gtk_menu_shell_append(GTK_MENU_SHELL(parent), widget); if(i->groups) { - uic_add_group_widget(obj->ctx, widget, (ui_enablefunc)ui_set_enabled, i->groups); + CxList *groups = cxArrayListCreateSimple(sizeof(int), i->ngroups); + cxListAddArray(groups, i->groups, i->ngroups); + uic_add_group_widget(obj->ctx, widget, (ui_enablefunc)ui_set_enabled, groups); + cxListDestroy(groups); } } diff -r 81778b9589d0 -r a0ea718ab1d8 ui/gtk/toolkit.c --- a/ui/gtk/toolkit.c Thu Feb 15 21:33:08 2024 +0100 +++ b/ui/gtk/toolkit.c Fri Feb 16 18:33:34 2024 +0100 @@ -37,6 +37,8 @@ #include "image.h" #include "../common/document.h" #include "../common/properties.h" +#include "../common/menu.h" +#include "../common/toolbar.h" #include #include