aboutsummaryrefslogtreecommitdiff
path: root/src/slide_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/slide_window.c
parent9fa18b75c1354989dabf682788b9ea41fe28c707 (diff)
Move PangoLanguage higher up
Diffstat (limited to 'src/slide_window.c')
-rw-r--r--src/slide_window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slide_window.c b/src/slide_window.c
index 42569b2..eb8ecaa 100644
--- a/src/slide_window.c
+++ b/src/slide_window.c
@@ -127,7 +127,7 @@ static void UNUSED update_style_menus(SlideWindow *sw)
free(sw->style_menu);
/* Get the list of styles from the style sheet */
- scin = sc_interp_new(NULL, NULL);
+ scin = sc_interp_new(NULL, sw->p->lang, NULL);
if ( scin == NULL ) {
fprintf(stderr, "Failed to set up interpreter.\n");
return;
@@ -631,7 +631,8 @@ SlideWindow *slide_window_open(struct presentation *p, GApplication *app)
stylesheets[0] = p->stylesheet;
stylesheets[1] = NULL;
- sw->sceditor = sc_editor_new(sw->cur_slide->scblocks, stylesheets);
+ sw->sceditor = sc_editor_new(sw->cur_slide->scblocks, stylesheets,
+ p->lang);
scroll = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll),
GTK_POLICY_AUTOMATIC,