diff options
author | Thomas White <taw@bitwiz.org.uk> | 2016-05-08 17:57:03 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2016-05-08 17:57:03 +0200 |
commit | 374120d3ccedb064c30b09ddd48131bc1b0a5df8 (patch) | |
tree | 19a5ab7dbcd7af75dbf8dd23111c67b37318b736 /src/narrative_window.c | |
parent | 35662a3a1587331e45a81a7452f66b8e13f2b50a (diff) |
Highlight paragraph only in narrative window and only during slideshow
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r-- | src/narrative_window.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); + } } |