From 2bf28d3b9de3ae3af076c569ffaccb66e13857f1 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 26 Nov 2017 20:02:53 +0100 Subject: Use config file for image store pathname --- src/slide_window.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/slide_window.c') diff --git a/src/slide_window.c b/src/slide_window.c index 7201c0a..415caeb 100644 --- a/src/slide_window.c +++ b/src/slide_window.c @@ -1,7 +1,7 @@ /* * slide_window.c * - * Copyright © 2013-2016 Thomas White + * Copyright © 2013-2017 Thomas White * * This file is part of Colloquium. * @@ -33,6 +33,7 @@ #include #include +#include "colloquium.h" #include "presentation.h" #include "slide_window.h" #include "render.h" @@ -214,13 +215,14 @@ GActionEntry sw_entries[] = { SlideWindow *slide_window_open(struct presentation *p, SCBlock *scblocks, - GApplication *app) + GApplication *papp) { GtkWidget *window; GtkWidget *scroll; SlideWindow *sw; SCBlock *stylesheets[2]; SCBlock *ch; + Colloquium *app = COLLOQUIUM(papp); sw = calloc(1, sizeof(SlideWindow)); if ( sw == NULL ) return NULL; @@ -244,7 +246,8 @@ SlideWindow *slide_window_open(struct presentation *p, SCBlock *scblocks, if ( ch == NULL ) { ch = sc_block_append_inside(scblocks, NULL, NULL, ""); } - sw->sceditor = sc_editor_new(ch, stylesheets, p->lang); + sw->sceditor = sc_editor_new(ch, stylesheets, p->lang, + colloquium_get_imagestore(app)); sc_editor_set_slidenum(sw->sceditor, slide_number(sw->p, scblocks)); scroll = gtk_scrolled_window_new(NULL, NULL); -- cgit v1.2.3