From 95b3b770fe3d3acf20ff1d2a0c8ddf1fd9c2758c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 24 Mar 2019 17:13:04 +0100 Subject: Implement image import --- libstorycode/slide.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libstorycode/slide.c') 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; } -- cgit v1.2.3