aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2015-11-15 16:17:17 +0100
committerThomas White <taw@bitwiz.org.uk>2015-11-15 16:17:17 +0100
commit81100c4e659c6b11f2e36f48a171325ddff76676 (patch)
tree67f55f357f72c35e288096d6202ec3c352d59b22 /src/narrative_window.c
parent9fa18b75c1354989dabf682788b9ea41fe28c707 (diff)
Move PangoLanguage higher up
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index ad4fc2c..ac4da22 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -426,7 +426,7 @@ static cairo_surface_t *render_thumbnail(int w, int h, void *bvp, void *vp)
stylesheets[1] = NULL;
/* FIXME: Cache like crazy here */
surf = render_sc(scblocks, w, h, 1024.0, 768.0, stylesheets, NULL,
- p->is, ISZ_THUMBNAIL, 0, &top);
+ p->is, ISZ_THUMBNAIL, 0, &top, p->lang);
frame_free(top);
return surf;
@@ -469,7 +469,7 @@ NarrativeWindow *narrative_window_new(struct presentation *p, GApplication *app)
stylesheets[0] = p->stylesheet;
stylesheets[1] = narrative_stylesheet();
stylesheets[2] = NULL;
- nw->sceditor = sc_editor_new(nw->p->scblocks, stylesheets);
+ nw->sceditor = sc_editor_new(nw->p->scblocks, stylesheets, p->lang);
cbl = sc_callback_list_new();
sc_callback_list_add_callback(cbl, "sthumb", create_thumbnail,
render_thumbnail, p);