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); |