gtk_text_buffer_get_iter_at_offset(buf, &sIter, 0);
gtk_text_buffer_get_iter_at_offset(buf, &eIter, -1);
txt = gtk_text_buffer_get_text(buf, &sIter, &eIter, TRUE);
-
+
printf("note=%s\n", txt);
-
+
if (!task->note || strcmp(txt, task->note))
note_put(task->uuid, txt);
path = malloc(strlen(dir) + 1 + strlen(uuid) + strlen(".note") + 1);
sprintf(path, "%s/%s.note", dir, uuid);
- printf("note_put %s %s %s \n", path, uuid, note);
+ printf("note_put %s %s %s\n", path, uuid, note);
f = fopen(path, "w");