diff -r 0cdb8089a29f -r a38aec91bd66 application/main.c --- a/application/main.c Tue Jan 27 09:59:32 2015 +0100 +++ b/application/main.c Sat Jan 31 11:51:54 2015 +0100 @@ -98,6 +98,11 @@ fflush(stdout); } +void action_button(UiEvent *event, void *data) { + printf("button clicked\n"); + fflush(stdout); +} + int main(int argc, char** argv) { ui_init("app1", argc, argv); @@ -112,6 +117,10 @@ ui_menuitem("item4", NULL, NULL); UiObject *obj = ui_window("Test", NULL); + ui_button(obj, "Test1", action_button, NULL); + ui_button(obj, "Test2", action_button, NULL); + ui_button(obj, "Test3", action_button, NULL); + ui_button(obj, "Test4", action_button, NULL); ui_show(obj); ui_main(); /*