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