application/main.c

changeset 12
fe94e0fb9ef3
parent 10
6f263196f916
child 14
e2fd132ab781
equal deleted inserted replaced
11:979c0e0ee853 12:fe94e0fb9ef3
81 } 81 }
82 82
83 void action_undo(UiEvent *event, void *data) { 83 void action_undo(UiEvent *event, void *data) {
84 printf("undo\n"); 84 printf("undo\n");
85 TestWindowData *wd = event->window; 85 TestWindowData *wd = event->window;
86 //ui_text_undo(&wd->text); 86 ui_text_undo(&wd->text);
87 } 87 }
88 88
89 void action_redo(UiEvent *event, void *data) { 89 void action_redo(UiEvent *event, void *data) {
90 printf("redo\n"); 90 printf("redo\n");
91 TestWindowData *wd = event->window; 91 TestWindowData *wd = event->window;
92 //ui_text_redo(&wd->text); 92 ui_text_redo(&wd->text);
93 } 93 }
94 94
95 95
96 int main(int argc, char** argv) { 96 int main(int argc, char** argv) {
97 ui_init("app1", argc, argv); 97 ui_init("app1", argc, argv);

mercurial