application/main.c

changeset 138
d781436e2490
parent 137
c9b8b9e0cfe8
child 139
dbde25a5bc53
--- a/application/main.c	Mon Jan 23 10:50:22 2017 +0100
+++ b/application/main.c	Mon Jan 23 12:17:34 2017 +0100
@@ -65,22 +65,13 @@
 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_tabview(obj);
     
-    ui_label(obj, "Test2");
-    ui_layout_hexpand(obj, TRUE);
-    ui_layout_vexpand(obj, TRUE);
-    ui_layout_gridwidth(obj, 2);
+    ui_tab(obj, "Tab 1");
+    ui_textarea(obj, NULL);
     
-    ui_drawingarea(obj, draw, NULL);
-    
-    ui_newline(obj);
+    ui_tab(obj, "Tab 2");
+    ui_textarea(obj, NULL);
     
     ui_end(obj);
     

mercurial