aboutsummaryrefslogtreecommitdiff
path: root/src/presentation.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-09-13 22:24:22 +0200
committerThomas White <taw@bitwiz.org.uk>2013-09-13 22:24:22 +0200
commit7f82ae3627592facfcdb84b187e03cafa654ac13 (patch)
treee22487ff049ba188a59497cf77b957022cf19517 /src/presentation.c
parentebdaf52f216ea63172a23716943d3a32dace5ea5 (diff)
Add notes
Diffstat (limited to 'src/presentation.c')
-rw-r--r--src/presentation.c7
1 files changed, 6 insertions, 1 deletions
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);