aboutsummaryrefslogtreecommitdiff
path: root/src/slide_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2017-11-26 20:02:53 +0100
committerThomas White <taw@bitwiz.org.uk>2017-11-26 20:02:53 +0100
commit2bf28d3b9de3ae3af076c569ffaccb66e13857f1 (patch)
treedd2ef413583e63ea589019fe687b0b599059bd34 /src/slide_window.c
parent86e80d221809201f4cab608c5312bce8c76618a8 (diff)
Use config file for image store pathname
Diffstat (limited to 'src/slide_window.c')
-rw-r--r--src/slide_window.c9
1 files changed, 6 insertions, 3 deletions
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 <taw@bitwiz.org.uk>
+ * Copyright © 2013-2017 Thomas White <taw@bitwiz.org.uk>
*
* This file is part of Colloquium.
*
@@ -33,6 +33,7 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <math.h>
+#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);