--- a/ui/gtk/headerbar.c Sun Sep 29 20:25:41 2024 +0200 +++ b/ui/gtk/headerbar.c Thu Oct 03 18:08:29 2024 +0200 @@ -58,6 +58,11 @@ ui_headerbar_add_items(obj, headerbar, left_defaults, UI_TOOLBAR_LEFT); ui_headerbar_add_items(obj, headerbar, center_defaults, UI_TOOLBAR_CENTER); + + UiToolbarMenuItem *appmenu = uic_get_appmenu(); + if(appmenu) { + ui_add_headerbar_menu(headerbar, NULL, appmenu, obj, UI_TOOLBAR_RIGHT); + } ui_headerbar_add_items(obj, headerbar, right_defaults, UI_TOOLBAR_RIGHT); } @@ -163,6 +168,10 @@ gtk_menu_button_set_icon_name(GTK_MENU_BUTTON(menubutton), item->args.icon); } + if(!item->args.label && !item->args.icon) { + gtk_menu_button_set_icon_name(GTK_MENU_BUTTON(menubutton), "open-menu-symbolic"); + } + GMenu *menu = g_menu_new(); ui_gmenu_add_menu_items(menu, 0, &item->menu, obj);