aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-03-30 23:57:15 +0200
committerThomas White <taw@bitwiz.me.uk>2018-03-30 23:57:15 +0200
commit57510a5330b09cd701bb0bb4cbbeca1d6d096737 (patch)
treea393a3f54a494156cb17a892354f539bc0087c10 /src/narrative_window.c
parent65446ad85962bc79620026d50d8ad26954ced041 (diff)
Do all rendering one level higher
All rendering functions now render the contents of the given block, not the block itself. This makes everything consistent again with respect to where the frame SCBlock pointers point, even for the top frame.
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index 312763d..913d8da 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -159,8 +159,7 @@ static void delete_slide_sig(GSimpleAction *action, GVariant *parameter,
sc_block_delete(&nw->dummy_top, ns);
/* Full rerender */
- sc_editor_set_scblock(nw->sceditor,
- sc_editor_get_scblock(nw->sceditor));
+ sc_editor_set_scblock(nw->sceditor, nw->dummy_top);
nw->p->saved = 0;
update_titlebar(nw);
}
@@ -339,8 +338,7 @@ static void add_slide_sig(GSimpleAction *action, GVariant *parameter,
fprintf(stderr, "Failed to split paragraph\n");
}
- sc_editor_set_scblock(nw->sceditor,
- sc_editor_get_scblock(nw->sceditor));
+ sc_editor_set_scblock(nw->sceditor, nw->dummy_top);
nw->p->saved = 0;
update_titlebar(nw);
}
@@ -681,7 +679,6 @@ static cairo_surface_t *render_thumbnail(int w, int h, void *bvp, void *vp)
struct frame *top;
int sn = slide_number(p, scblocks);
- scblocks = sc_block_child(scblocks);
stylesheets[0] = p->stylesheet;
stylesheets[1] = NULL;