application/main.c

changeset 106
a4f4123ca12a
parent 104
3efe0210e27e
child 107
9aff1dc3990d
equal deleted inserted replaced
105:86d729874ff4 106:a4f4123ca12a
35 35
36 void action_menu(UiEvent *event, void *data) { 36 void action_menu(UiEvent *event, void *data) {
37 printf("action_menu test: {%s}\n", data); 37 printf("action_menu test: {%s}\n", data);
38 printf("text: {%s}\n", ui_gettext(event->obj, "text")); 38 printf("text: {%s}\n", ui_gettext(event->obj, "text"));
39 fflush(stdout); 39 fflush(stdout);
40
41 char *file = ui_openfiledialog(event->obj);
42 printf("file: %s\n", file);
43 fflush(stdout);
44 free(file);
40 } 45 }
41 46
42 void action_button(UiEvent *event, void *data) { 47 void action_button(UiEvent *event, void *data) {
43 printf("button clicked\n"); 48 printf("button clicked\n");
44 fflush(stdout); 49 fflush(stdout);

mercurial