aboutsummaryrefslogtreecommitdiff
path: root/src/presentation.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-04-17 09:56:27 +0200
committerThomas White <taw@bitwiz.org.uk>2012-04-17 09:56:27 +0200
commit3e101100a1e64d4ef1ac60f448f12dc9de8dcfbf (patch)
treef02ca1ccb57b840705079973f1f65e74388c5a41 /src/presentation.c
parentee108f180c8c199a18ce375114ee3f1553d61d79 (diff)
Start cleaning out...
Diffstat (limited to 'src/presentation.c')
-rw-r--r--src/presentation.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/presentation.c b/src/presentation.c
index 9b227f5..702ac7a 100644
--- a/src/presentation.c
+++ b/src/presentation.c
@@ -67,7 +67,7 @@ void free_presentation(struct presentation *p)
int insert_slide(struct presentation *p, struct slide *new, int pos)
{
struct slide **try;
- int i;
+// int i;
try = realloc(p->slides, (1+p->num_slides)*sizeof(struct slide *));
if ( try == NULL ) {
@@ -99,12 +99,13 @@ int insert_slide(struct presentation *p, struct slide *new, int pos)
new->parent = p;
p->num_slides++;
- for ( i=pos+1; i<p->num_slides; i++ ) {
- struct object *o = p->slides[i]->roles[S_ROLE_SLIDENUMBER];
- if ( o != NULL ) {
- o->update_object(o);
- }
- }
+ /* Update slide numbers for all subsequent slides */
+// for ( i=pos+1; i<p->num_slides; i++ ) {
+// struct object *o = p->slides[i]->roles[S_ROLE_SLIDENUMBER];
+// if ( o != NULL ) {
+// o->update_object(o);
+// }
+// }
return 0;
}
@@ -151,6 +152,7 @@ struct slide *add_slide(struct presentation *p, int pos)
return NULL;
}
+#if 0
/* Copy roles and references to this slide as applicable */
if ( pos >= 0 ) {
@@ -185,6 +187,7 @@ struct slide *add_slide(struct presentation *p, int pos)
}
}
+#endif
return s;
}
@@ -344,7 +347,7 @@ struct presentation *new_presentation()
new->cur_edit_slide = NULL;
new->cur_proj_slide = NULL;
- new->editing_object = NULL;
+ new->cur_frame = NULL;
new->completely_empty = 1;
new->drag_status = DRAG_STATUS_NONE;
@@ -352,10 +355,5 @@ struct presentation *new_presentation()
default_stylesheet(new->ss);
new->image_store = image_store_new();
- new->select_tool = initialise_select_tool();
- new->text_tool = initialise_text_tool();
- new->image_tool = initialise_image_tool();
- new->cur_tool = new->select_tool;
-
return new;
}