--- a/ui/gtk/headerbar.c Sun Sep 22 21:17:15 2024 +0200 +++ b/ui/gtk/headerbar.c Mon Sep 23 23:17:39 2024 +0200 @@ -28,7 +28,7 @@ #include "headerbar.h" - +#include "button.h" #if GTK_MAJOR_VERSION >= 3 @@ -117,7 +117,7 @@ } void ui_add_headerbar_item(GtkWidget *headerbar, GtkWidget *box, UiToolbarItem *item, UiObject *obj, enum UiToolbarPos pos) { - GtkWidget *button = gtk_button_new_with_label(item->args.label); + GtkWidget *button = ui_create_button(obj, item->args.label, item->args.icon, item->args.onclick, item->args.onclickdata); WIDGET_ADD_CSS_CLASS(button, "flat"); headerbar_add(headerbar, box, button, pos); }