diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-05-07 18:23:59 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-05-07 18:23:59 +0200 |
commit | e9c36334f53bb6aea931d0ec00e8967ef822c92c (patch) | |
tree | 4c8f2a982f6da60697ede9021e8bfb999d7143d8 /libstorycode/narrative.c | |
parent | e1f1f218ba9559161f5fc1c01bcdda1dd7eb308e (diff) |
Beautify cursor and selection highlight for slides
Diffstat (limited to 'libstorycode/narrative.c')
-rw-r--r-- | libstorycode/narrative.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libstorycode/narrative.c b/libstorycode/narrative.c index 1e7753d..cefbd0d 100644 --- a/libstorycode/narrative.c +++ b/libstorycode/narrative.c @@ -162,6 +162,13 @@ int narrative_get_unsaved(Narrative *n) } +int narrative_item_is_text(Narrative *n, int item) +{ + if ( n->items[item].type == NARRATIVE_ITEM_SLIDE ) return 0; + return 1; +} + + void narrative_add_stylesheet(Narrative *n, Stylesheet *ss) { assert(n->stylesheet == NULL); |