ui/gtk/headerbar.c

changeset 90
f501f0efc9a8
parent 60
ee4e4742391e
--- a/ui/gtk/headerbar.c	Tue Nov 26 11:38:10 2024 +0100
+++ b/ui/gtk/headerbar.c	Wed Nov 27 13:27:30 2024 +0100
@@ -115,6 +115,7 @@
         enum UiToolbarPos pos)
 {
     GtkWidget *button = ui_create_button(obj, item->args.label, item->args.icon, item->args.onclick, item->args.onclickdata, 0, FALSE);
+    ui_set_widget_groups(obj->ctx, button, item->args.groups);
     WIDGET_ADD_CSS_CLASS(button, "flat");
     headerbar_add(headerbar, box, button, pos);
 }
@@ -127,6 +128,7 @@
         enum UiToolbarPos pos)
 {
     GtkWidget *button = gtk_toggle_button_new();
+    ui_set_widget_groups(obj->ctx, button, item->args.groups);
     WIDGET_ADD_CSS_CLASS(button, "flat");
     ui_setup_togglebutton(obj, button, item->args.label, item->args.icon, item->args.varname, NULL, item->args.onchange, item->args.onchangedata, 0);
     headerbar_add(headerbar, box, button, pos);
@@ -169,4 +171,4 @@
     headerbar_add(headerbar, box, menubutton, pos);
 }
     
-#endif
\ No newline at end of file
+#endif // GTK_CHECK_VERSION(3, 10, 0)

mercurial