diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-09-07 15:42:53 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-09-07 15:42:53 +0200 |
commit | 013f650a3ddccd1b2f23840bee909236b7a03a35 (patch) | |
tree | 40d151be33056a3eb16b70a23e3f008eea4001af /src/presentation.c | |
parent | 0702209973603d5523d3599e86e4c70ca828a0d9 (diff) |
Factorise style sheet
Diffstat (limited to 'src/presentation.c')
-rw-r--r-- | src/presentation.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/presentation.c b/src/presentation.c index 919aad2..f490539 100644 --- a/src/presentation.c +++ b/src/presentation.c @@ -38,6 +38,7 @@ #include "notes.h" #include "inhibit_screensaver.h" #include "render.h" +#include "sc_interp.h" static int num_presentations = 0; @@ -295,6 +296,8 @@ struct presentation *new_presentation() new->completely_empty = 1; + new->stylesheet = NULL; + new->n_menu_rebuild = 0; new->menu_rebuild_list = NULL; new->menu_path_list = NULL; @@ -433,6 +436,8 @@ int load_presentation(struct presentation *p, const char *filename) return r; /* Error */ } + find_stylesheet(p); + block = p->scblocks; while ( block != NULL ) { @@ -446,9 +451,9 @@ int load_presentation(struct presentation *p, const char *filename) if ( s != NULL ) { - s->scblocks = block; + s->scblocks = sc_block_child(block); s->top = frame_new(); - s->top->scblocks = s->scblocks; + s->top->scblocks = sc_block_child(block); } |