diff -r ea89bbb0c4c8 -r c04433993fbb ui/gtk/toolbar.c --- a/ui/gtk/toolbar.c Thu Dec 10 13:43:25 2020 +0100 +++ b/ui/gtk/toolbar.c Fri Dec 11 11:46:19 2020 +0100 @@ -275,7 +275,7 @@ gtk_toolbar_insert(tb, button, -1); if(item->groups) { - uic_add_group_widget(obj->ctx, button, item->groups); + uic_add_group_widget(obj->ctx, button, (ui_enablefunc)ui_set_enabled, item->groups); } } @@ -304,7 +304,7 @@ gtk_toolbar_insert(tb, button, -1); if(item->groups) { - uic_add_group_widget(obj->ctx, button, item->groups); + uic_add_group_widget(obj->ctx, button, (ui_enablefunc)ui_set_enabled, item->groups); } } @@ -366,7 +366,7 @@ gtk_toolbar_insert(tb, button, -1); if(item->groups) { - uic_add_group_widget(obj->ctx, button, item->groups); + uic_add_group_widget(obj->ctx, button, (ui_enablefunc)ui_set_enabled, item->groups); } } @@ -390,7 +390,7 @@ } void ui_tool_toggle_button_set(UiInteger *integer, int64_t value) { - gboolean s = integer->value != 0 ? TRUE : FALSE; + gboolean s = value != 0 ? TRUE : FALSE; gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(integer->obj), s); integer->value = s; }