aboutsummaryrefslogtreecommitdiff
path: root/src/slide_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-05-01 22:12:22 +0200
committerThomas White <taw@bitwiz.me.uk>2018-05-01 22:12:22 +0200
commit072516c65a7335cc168e6ecc9b5a0737c9842913 (patch)
tree9390bd7da99406258fa4ec2b6f88e8a01cab1fe5 /src/slide_window.c
parentebe339f9f26287216d8e6bc969ef3eaba7377e5c (diff)
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.
Diffstat (limited to 'src/slide_window.c')
-rw-r--r--src/slide_window.c6
1 files changed, 1 insertions, 5 deletions
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);