application/main.c

branch
newapi
changeset 320
be224cf1f50e
parent 317
b30415965ec3
child 322
22f6dadd9f46
equal deleted inserted replaced
319:050ceb8ecf44 320:be224cf1f50e
66 void action_switch(UiEvent *event, void *userdata) { 66 void action_switch(UiEvent *event, void *userdata) {
67 67
68 } 68 }
69 69
70 void action_toolbar_button(UiEvent *event, void *userdata) { 70 void action_toolbar_button(UiEvent *event, void *userdata) {
71 71 printf("toolbar button\n");
72
73 ui_dialog(event->obj, .title = "Dialog Title", .content = "Content Label", .button1_label = "btn1", .button2_label = "btn2", .input = TRUE, .closebutton_label = "Cancel");
72 } 74 }
73 75
74 MyDocument* create_doc(void) { 76 MyDocument* create_doc(void) {
75 MyDocument *doc = ui_document_new(sizeof(MyDocument)); 77 MyDocument *doc = ui_document_new(sizeof(MyDocument));
76 UiContext *docctx = ui_document_context(doc); 78 UiContext *docctx = ui_document_context(doc);

mercurial