aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-11-29 10:06:05 +0100
committerThomas White <taw@bitwiz.org.uk>2014-11-29 10:06:05 +0100
commite21a073b0c6e4f0e7a00883eec590fa5cd84f407 (patch)
tree4e8406adfba66af5bea516c67fc6b41371191c17 /src/sc_editor.c
parent75e794e74d176093592db5420a9d62258989ed3d (diff)
Restore slide numbering
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 0d3406f..261b23f 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -73,9 +73,8 @@ static void rerender(SCEditor *e)
cairo_surface_destroy(e->surface);
}
- /* FIXME: Slide number, if appropriate */
e->surface = render_sc(e->scblocks, e->w, e->h, e->log_w, e->log_h,
- e->stylesheet, e->is, ISZ_EDITOR, 0);
+ e->stylesheet, e->is, ISZ_EDITOR, e->slidenum);
}
@@ -1392,6 +1391,12 @@ void sc_editor_set_logical_size(SCEditor *e, double w, double h)
}
+void sc_editor_set_slidenum(SCEditor *e, int slidenum)
+{
+ e->slidenum = slidenum;
+}
+
+
SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock *stylesheet)
{
SCEditor *sceditor;
@@ -1407,6 +1412,7 @@ SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock *stylesheet)
sceditor->log_h = 100;
sceditor->is = imagestore_new();
sceditor->stylesheet = stylesheet;
+ sceditor->slidenum = 0;
rerender(sceditor);