application/main.c

changeset 3
c1a75454b444
parent 2
eeb50c534497
child 4
39b9b86ec452
--- a/application/main.c	Fri Mar 21 13:20:53 2014 +0100
+++ b/application/main.c	Sat Mar 22 10:37:12 2014 +0100
@@ -85,6 +85,15 @@
     ui_checkitem_nv("Check", "check1");
     ui_menuitem("Close", action_close, NULL);
     
+    ui_toolitem_st("new", UI_STOCK_NEW, action_new, NULL);
+    ui_toolitem_st("open", UI_STOCK_OPEN, action_open, NULL);
+    ui_toolitem_st("close", UI_STOCK_CLOSE, action_close, NULL);
+    
+    ui_toolbar_add_default("new");
+    ui_toolbar_add_default("open");
+    ui_toolbar_add_default("close");
+    
+    
     UiObject *window = ui_window("Mod0", NULL);
     TestWindowData *wdata = malloc(sizeof(TestWindowData));
     window->window = wdata;

mercurial