make/vs/testapp/main.c

branch
newapi
changeset 377
3a60db9ebb5d
parent 374
eae5d6623fd3
child 379
958bae372271
equal deleted inserted replaced
376:5578494147cb 377:3a60db9ebb5d
305 UiObject *tab2 = ui_tabview_add(tabview, "Sub 2", -1); 305 UiObject *tab2 = ui_tabview_add(tabview, "Sub 2", -1);
306 ui_button(tab2, .label = "Button 2"); 306 ui_button(tab2, .label = "Button 2");
307 } 307 }
308 } 308 }
309 ui_tab(obj, "Tab 4") { 309 ui_tab(obj, "Tab 4") {
310 ui_textarea(obj, .varname = "text"); 310 ui_grid0(obj) {
311 ui_button(obj, .label = "test1");
312 ui_newline(obj);
313 ui_textarea(obj, .varname = "text", .vexpand = TRUE, .hexpand = TRUE);
314 }
311 } 315 }
312 ui_tab(obj, "Tab 5") { 316 ui_tab(obj, "Tab 5") {
313 ui_button(obj, .label = "Test Button", .icon = "application-x-generic", .onclick = action_button); 317 ui_button(obj, .label = "Test Button", .icon = "application-x-generic", .onclick = action_button);
314 ui_imageviewer(obj, .varname = "image", .style_class = "imageviewer"); 318 ui_imageviewer(obj, .varname = "image", .style_class = "imageviewer");
315 } 319 }

mercurial