From 7f82ae3627592facfcdb84b187e03cafa654ac13 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 13 Sep 2013 22:24:22 +0200 Subject: Add notes --- src/presentation.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/presentation.c') diff --git a/src/presentation.c b/src/presentation.c index f9b4307..c406840 100644 --- a/src/presentation.c +++ b/src/presentation.c @@ -37,6 +37,7 @@ #include "frame.h" #include "imagestore.h" #include "wrap.h" +#include "notes.h" static int num_presentations = 0; @@ -361,7 +362,7 @@ int save_presentation(struct presentation *p, const char *filename) struct serializer ser; char *old_fn; - //grab_current_notes(p); + grab_current_notes(p); fh = fopen(filename, "w"); if ( fh == NULL ) return 1; @@ -399,6 +400,8 @@ int save_presentation(struct presentation *p, const char *filename) serialize_s(&ser, "sc", sc); free(sc); + write_notes(s, &ser); + serialize_end(&ser); } @@ -425,6 +428,8 @@ static struct slide *tree_to_slide(struct presentation *p, struct ds_node *root) s = new_slide(); s->parent = p; + load_notes(root, s); + get_field_s(root, "sc", &sc); s->top = sc_unpack(sc, p->ss); free(sc); -- cgit v1.2.3