diff -r 799c8f60b9f1 -r 1c3af8e31d8e ui/gtk/toolbar.c --- a/ui/gtk/toolbar.c Tue Oct 29 10:43:59 2024 +0100 +++ b/ui/gtk/toolbar.c Tue Oct 29 11:17:59 2024 +0100 @@ -145,6 +145,8 @@ } gtk_tool_item_set_is_important(button, TRUE); + ui_set_widget_ngroups(obj->ctx, GTK_WIDGET(button), item->args.groups, item->ngroups); + if(item->args.onclick) { UiEventData *event = cxMalloc( obj->ctx->allocator, @@ -189,6 +191,7 @@ set_toolbutton_icon(button, item->args.icon); } } + ui_set_widget_ngroups(obj->ctx, GTK_WIDGET(button), item->args.groups, item->ngroups); UiVar* var = uic_widget_var(obj->ctx, obj->ctx, NULL, item->args.varname, UI_VAR_INTEGER); if(var) { @@ -406,6 +409,7 @@ if(item->args.icon) { ui_button_set_icon_name(button, item->args.icon); } + ui_set_widget_groups(obj->ctx, button, item->args.groups); gtk_header_bar_pack_start(hb, button);