# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1706458230 -3600
# Node ID 84665f0a9ab29d1991f2d186fa31a81d1cb9d63e
# Parent  e2b33055113f41156d7f8feb7f005dc25dc8ca39
add macro for creating the appmenu toolbar item

diff -r e2b33055113f -r 84665f0a9ab2 ui/ui/toolbar.h
--- a/ui/ui/toolbar.h	Sun Jan 28 11:42:42 2024 +0100
+++ b/ui/ui/toolbar.h	Sun Jan 28 17:10:30 2024 +0100
@@ -70,7 +70,8 @@
 #define ui_toolbar_item(name, ...) ui_toolbar_item_create(name, (UiToolbarItemArgs){ __VA_ARGS__ } )
 #define ui_toolbar_toggleitem(name, ...) ui_toolbar_toggleitem_create(name, (UiToolbarToggleItemArgs){ __VA_ARGS__ } )
 
-#define ui_toolbar_menu(obj, ...) for(ui_toolbar_menu_create(obj, (UiToolbarMenuArgs){ __VA_ARGS__ });ui_menu_is_open();ui_menu_close())
+#define ui_toolbar_menu(name, ...) for(ui_toolbar_menu_create(name, (UiToolbarMenuArgs){ __VA_ARGS__ });ui_menu_is_open();ui_menu_close())
+#define ui_toolbar_appmenu() for(ui_toolbar_menu_create(NULL, (UiToolbarMenuArgs){ 0 });ui_menu_is_open();ui_menu_close())
 
 
 UIEXPORT void ui_toolbar_item_create(const char* name, UiToolbarItemArgs args);