From 8036222a5a9454b6af7667ffdaf1efdd6f077633 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Wed, 17 Oct 2012 10:16:41 +0000 Subject: [PATCH] --- src/main.c | 4 ++-- src/note.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 8844001..c439fcf 100644 --- a/src/main.c +++ b/src/main.c @@ -177,9 +177,9 @@ static int tasksave_clicked_cbk(GtkButton *btn, gpointer data) 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); diff --git a/src/note.c b/src/note.c index 6e48e87..f22f97d 100644 --- a/src/note.c +++ b/src/note.c @@ -42,7 +42,7 @@ void note_put(const char *uuid, const char *note) 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"); -- 2.7.4