application/menu.c

changeset 4
d8e8f34e65ee
parent 3
c04433993fbb
--- a/application/menu.c	Fri Dec 11 11:46:19 2020 +0100
+++ b/application/menu.c	Fri Dec 11 18:32:54 2020 +0100
@@ -40,6 +40,7 @@
 
 static void create_main_menu(void) {
     ui_menu("File");
+    ui_menuitem_st(UI_STOCK_NEW, NULL, NULL);
     ui_menuitem_st(UI_STOCK_OPEN, NULL, NULL);
     
     ui_menu("Edit");
@@ -61,6 +62,8 @@
     ui_toolitem_toggle("singleview", "S", NULL, tb_singleview);
     ui_toolitem_toggle("dualview", "D", NULL, tb_dualview);
     
+    ui_toolitem_st("new-note", UI_STOCK_NEW, NULL, NULL);
+    
     tb_sidebar->value = 1;
     tb_singleview->value = 0;
     tb_dualview->value = 1;
@@ -70,6 +73,7 @@
     ui_toolbar_add_default("singleview");
     ui_toolbar_add_default("dualview");
     ui_toolbar_add_default("@separator");
+    ui_toolbar_add_default("new-note");
 }
 
 void menu_init(void) {

mercurial