diff options
author | Thomas White <taw@bitwiz.me.uk> | 2018-05-01 22:12:22 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2018-05-01 22:12:22 +0200 |
commit | 072516c65a7335cc168e6ecc9b5a0737c9842913 (patch) | |
tree | 9390bd7da99406258fa4ec2b6f88e8a01cab1fe5 /src/slideshow.c | |
parent | ebe339f9f26287216d8e6bc969ef3eaba7377e5c (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/slideshow.c')
-rw-r--r-- | src/slideshow.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/slideshow.c b/src/slideshow.c index 754a453..6e1c49d 100644 --- a/src/slideshow.c +++ b/src/slideshow.c @@ -54,7 +54,6 @@ void sc_slideshow_class_init(SCSlideshowClass *klass) static void slideshow_rerender(SCSlideshow *ss) { int n; - SCBlock *stylesheets[2]; gint w, h; if ( ss->cur_slide == NULL ) return; @@ -63,14 +62,11 @@ static void slideshow_rerender(SCSlideshow *ss) cairo_surface_destroy(ss->surface); } - stylesheets[0] = ss->p->stylesheet; - stylesheets[1] = NULL; - n = slide_number(ss->p, ss->cur_slide); ss->surface = render_sc(ss->cur_slide, ss->slide_width, ss->slide_height, ss->p->slide_width, ss->p->slide_height, - stylesheets, NULL, ss->p->is, n, + ss->p->stylesheet, NULL, ss->p->is, n, &ss->top, ss->p->lang); w = gtk_widget_get_allocated_width(GTK_WIDGET(ss->drawingarea)); |