diff -r 6a6718269c22 -r 3efe0210e27e application/main.c --- a/application/main.c Wed Jan 20 17:37:52 2016 +0100 +++ b/application/main.c Thu Jan 21 20:40:14 2016 +0100 @@ -45,7 +45,7 @@ } void draw(UiEvent *event, UiGraphics *g, void *data) { - + /* int width = g->width; int height = g->height; printf("rec[%d,%d]\n", width, height); @@ -64,6 +64,7 @@ ui_draw_text(g, 50, 50, text); ui_text_free(text); + */ } void click(UiEvent *event, void *data) { @@ -90,24 +91,21 @@ ui_toolbar_add_default("button2"); UiObject *obj = ui_window("Test", NULL); - UIWIDGET w = ui_drawingarea(obj, draw, NULL); + //UIWIDGET w = ui_drawingarea(obj, draw, NULL); //ui_mouse_handler(obj, w, click, NULL); -/* +///* ui_grid_sp(obj, 8, 4, 4); ui_button(obj, "OK", NULL, NULL); + ui_layout_hexpand(obj, TRUE); ui_button(obj, "Google", NULL, NULL); ui_textfield(obj, NULL); ui_newline(obj); - ui_button(obj, "OK", NULL, NULL); - ui_newline(obj); - ui_vbox(obj); ui_button(obj, "txt", NULL, NULL); ui_textfield(obj, NULL); - ui_space(obj); ui_end(obj); ui_layout_hexpand(obj, TRUE); ui_layout_vexpand(obj, TRUE); @@ -115,7 +113,7 @@ ui_button(obj, "BTN1", NULL, NULL); ui_end(obj); -*/ +//*/ ui_show(obj); ui_main();