From 374120d3ccedb064c30b09ddd48131bc1b0a5df8 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 8 May 2016 17:57:03 +0200 Subject: Highlight paragraph only in narrative window and only during slideshow --- src/narrative_window.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/narrative_window.c') diff --git a/src/narrative_window.c b/src/narrative_window.c index e9436cc..d1aa5f0 100644 --- a/src/narrative_window.c +++ b/src/narrative_window.c @@ -171,6 +171,7 @@ static void ss_end_show(SlideShow *ss, void *vp) { NarrativeWindow *nw = vp; nw->show = NULL; + sc_editor_set_para_highlight(nw->sceditor, 0); } @@ -279,6 +280,9 @@ static void start_slideshow_sig(GSimpleAction *action, GVariant *parameter, nw->sel_slide = first_slide(nw->p); nw->show = try_start_slideshow(nw->p, ssc, nw); + if ( nw->show != NULL ) { + sc_editor_set_para_highlight(nw->sceditor, 1); + } } -- cgit v1.2.3