From 072516c65a7335cc168e6ecc9b5a0737c9842913 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 1 May 2018 22:12:22 +0200 Subject: Get rid of stylesheet lists and add stylesheet change signal We no longer have a need for more than one (since the callback stuff changed, see 61394e51), and removing it makes it much easier to hook up the stylesheet update code for the stylesheet editor. --- src/slide_window.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/slide_window.c') diff --git a/src/slide_window.c b/src/slide_window.c index a9f8459..b010d1b 100644 --- a/src/slide_window.c +++ b/src/slide_window.c @@ -238,7 +238,6 @@ SlideWindow *slide_window_open(struct presentation *p, SCBlock *scblocks, { GtkWidget *window; SlideWindow *sw; - SCBlock *stylesheets[2]; Colloquium *app = COLLOQUIUM(papp); sw = calloc(1, sizeof(SlideWindow)); @@ -255,11 +254,8 @@ SlideWindow *slide_window_open(struct presentation *p, SCBlock *scblocks, g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(sw_close_sig), sw); - stylesheets[0] = p->stylesheet; - stylesheets[1] = NULL; - sw->scblocks = scblocks; - sw->sceditor = sc_editor_new(scblocks, stylesheets, p->lang, + sw->sceditor = sc_editor_new(scblocks, p->stylesheet, p->lang, colloquium_get_imagestore(app)); sc_editor_set_slidenum(sw->sceditor, slide_number(sw->p, scblocks)); sc_editor_set_scale(sw->sceditor, 1); -- cgit v1.2.3