diff options
Diffstat (limited to 'libstorycode/slide.c')
-rw-r--r-- | libstorycode/slide.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstorycode/slide.c b/libstorycode/slide.c index 075a237..3bf88a9 100644 --- a/libstorycode/slide.c +++ b/libstorycode/slide.c @@ -73,19 +73,19 @@ static SlideItem *add_item(Slide *s) } -int slide_add_image(Slide *s, char *filename, struct frame_geom geom) +SlideItem *slide_add_image(Slide *s, char *filename, struct frame_geom geom) { SlideItem *item; item = add_item(s); - if ( item == NULL ) return 1; + if ( item == NULL ) return NULL; item->type = SLIDE_ITEM_IMAGE; item->geom = geom; item->filename = filename; item->resizable = 1; - return 0; + return item; } |