diff -r 99f83fbf48e9 -r 54f5d7eb1335 ui/gtk/button.c --- a/ui/gtk/button.c Mon Oct 21 15:47:10 2024 +0200 +++ b/ui/gtk/button.c Tue Oct 22 21:17:01 2024 +0200 @@ -91,6 +91,7 @@ UiObject* current = uic_current_obj(obj); GtkWidget *button = ui_create_button(obj, args.label, args.icon, args.onclick, args.onclickdata); ui_set_name_and_style(button, args.name, args.style_class); + ui_set_widget_groups(obj->ctx, button, args.groups); UI_APPLY_LAYOUT1(current, args); current->container->add(current->container, button, FALSE); return button; @@ -232,6 +233,7 @@ ui_setup_togglebutton(current, widget, args.label, args.icon, args.varname, args.value, args.onchange, args.onchangedata); ui_set_name_and_style(widget, args.name, args.style_class); + ui_set_widget_groups(obj->ctx, widget, args.groups); UI_APPLY_LAYOUT1(current, args); current->container->add(current->container, widget, FALSE); @@ -282,6 +284,9 @@ args.onchange, args.onchangedata); + ui_set_name_and_style(widget, args.name, args.style_class); + ui_set_widget_groups(obj->ctx, widget, args.groups); + UI_APPLY_LAYOUT1(current, args); current->container->add(current->container, widget, FALSE); @@ -343,6 +348,7 @@ GtkWidget *rbutton = RADIOBUTTON_NEW(rg, args.label); ui_set_name_and_style(rbutton, args.name, args.style_class); + ui_set_widget_groups(obj->ctx, rbutton, args.groups); if(rgroup) { #if GTK_MAJOR_VERSION >= 4 if(rg) {