application/main.c

changeset 136
1df2fb3d079c
parent 133
6dd780cbc8c6
child 137
c9b8b9e0cfe8
--- a/application/main.c	Sun Jan 22 17:23:20 2017 +0100
+++ b/application/main.c	Sun Jan 22 18:02:45 2017 +0100
@@ -44,7 +44,25 @@
 
 void application_startup(UiEvent *event, void *data) {
     UiObject *obj = ui_window("Test", NULL);
+    
+    ui_grid_sp(obj, 10, 10, 10);
+    
+    ui_label(obj, "Test2");
+    ui_layout_hexpand(obj, TRUE);
+    ui_button(obj, "OK", NULL, NULL);
+    ui_button(obj, "------------------------", NULL, NULL);
+    ui_newline(obj);
+    
+    ui_label(obj, "Test2");
+    ui_layout_hexpand(obj, TRUE);
+    ui_layout_vexpand(obj, TRUE);
+    ui_layout_gridwidth(obj, 2);
     ui_textarea(obj, NULL);
+    
+    ui_newline(obj);
+    
+    ui_end(obj);
+    
     ui_show(obj);
 }
 
@@ -64,8 +82,8 @@
     ui_menuitem("item4", action_menu, NULL);
     
     // toolbar
-    ui_toolitem("button1", "Test", action_button, NULL);
-    ui_toolitem("button2", "OK", action_button, NULL);
+    ui_toolitem("button1", "Test1", action_button, NULL);
+    ui_toolitem("button2", "Test2", action_button, NULL);
     ui_toolbar_add_default("button1");
     ui_toolbar_add_default("button2");
     

mercurial