aboutsummaryrefslogtreecommitdiff
path: root/src/slide_window.c
diff options
context:
space:
mode:
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,