diff options
author | Thomas White <taw@bitwiz.org.uk> | 2014-11-21 23:54:08 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2014-11-21 23:54:08 +0100 |
commit | 86790d75487fda0aa5fccaf01d10ab00035047ad (patch) | |
tree | 13a9ac315fdfe2bc5599081945f0a108ffca3ec3 /src/presentation.c | |
parent | 85570d136f664b3c75151e06e686723be95f00c0 (diff) |
Get rid of slide.top
Diffstat (limited to 'src/presentation.c')
-rw-r--r-- | src/presentation.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/presentation.c b/src/presentation.c index 69fa23b..ea3080a 100644 --- a/src/presentation.c +++ b/src/presentation.c @@ -129,9 +129,6 @@ struct slide *new_slide() new = calloc(1, sizeof(struct slide)); if ( new == NULL ) return NULL; - new->top = frame_new(); - /* FIXME: Set zero margins etc on top level frame */ - new->scblocks = NULL; new->notes = NULL; @@ -377,8 +374,6 @@ int load_presentation(struct presentation *p, const char *filename) if ( s != NULL ) { s->scblocks = sc_block_child(block); - s->top = frame_new(); - s->top->scblocks = sc_block_child(block); attach_notes(s); } @@ -419,12 +414,12 @@ static struct frame *find_parent(struct frame *fr, struct frame *search) } -void delete_subframe(struct slide *s, struct frame *fr) +void delete_subframe(struct frame *top, struct frame *fr) { struct frame *parent; int i, idx, found; - parent = find_parent(s->top, fr); + parent = find_parent(top, fr); if ( parent == NULL ) { fprintf(stderr, "Couldn't find parent when deleting frame.\n"); return; |