aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-12-11 10:16:23 +0100
committerThomas White <taw@bitwiz.org.uk>2014-12-11 10:16:23 +0100
commitfdac2c8fc30153b103212e92c78885edc1134fb7 (patch)
treea9a9dff708c939686c1a2c4bc83df13dfa6043c6 /src/sc_editor.c
parent7e210f51ff3eac1392247d523904b885081e5a59 (diff)
WIP on Narrative stylesheet
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 726b373..82c283a 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -69,17 +69,17 @@ void sc_editor_set_background(SCEditor *e, double r, double g, double b)
/* Update the view, once it's been edited in some way. */
static void rerender(SCEditor *e)
{
- SCBlock *stylesheets[2];
-
if ( e->surface != NULL ) {
cairo_surface_destroy(e->surface);
}
- stylesheets[0] = e->stylesheet;
- stylesheets[1] = NULL;
-
+ int i=0;
+ do {
+ printf("---%i: %p\n", i, e->stylesheets[i]);
+ i++;
+ } while ( e->stylesheets[i-1] != NULL );
e->surface = render_sc(e->scblocks, e->w, e->h, e->log_w, e->log_h,
- stylesheets, e->is, ISZ_EDITOR, e->slidenum);
+ e->stylesheets, e->is, ISZ_EDITOR, e->slidenum);
}
@@ -1447,7 +1447,7 @@ void sc_editor_set_top_frame_editable(SCEditor *e, int top_frame_editable)
}
-SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock *stylesheet)
+SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock **stylesheets)
{
SCEditor *sceditor;
GtkTargetEntry targets[1];
@@ -1462,7 +1462,7 @@ SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock *stylesheet)
sceditor->log_w = 100;
sceditor->log_h = 100;
sceditor->is = imagestore_new();
- sceditor->stylesheet = stylesheet;
+ sceditor->stylesheets = stylesheets;
sceditor->slidenum = 0;
sceditor->min_border = 0.0;
sceditor->top_editable = 0;