application/main.c

changeset 10
6f263196f916
parent 8
84a541c6e093
child 12
fe94e0fb9ef3
--- a/application/main.c	Wed Mar 26 15:53:43 2014 +0100
+++ b/application/main.c	Fri Mar 28 20:03:01 2014 +0100
@@ -50,6 +50,7 @@
 }
 
 void action_open(UiEvent *event, void *data) {
+    //printf("check1: %s\n", event->intval ? "true" : "false");
     //printf("check1: %s\n", ui_getint(event->obj, "check1") ? "true" : "false");
     TestDocument *doc = event->document;
     printf("check1: %s\n", ui_getval(doc->check1) ? "true" : "false");
@@ -82,13 +83,13 @@
 void action_undo(UiEvent *event, void *data) {
     printf("undo\n");
     TestWindowData *wd = event->window;
-    ui_text_undo(&wd->text);
+    //ui_text_undo(&wd->text);
 }
 
 void action_redo(UiEvent *event, void *data) {
     printf("redo\n");
     TestWindowData *wd = event->window;
-    ui_text_redo(&wd->text);
+    //ui_text_redo(&wd->text);
 }
 
 
@@ -104,6 +105,7 @@
     ui_menuitem("Dokument 2", action_doc2, NULL);
     ui_menuseparator();
     ui_checkitem_nv("Check", "check1");
+    //ui_checkitem("Check", action_open, NULL);
     ui_menuitem("Close", action_close, NULL);
     
     

mercurial