diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-03-24 17:13:04 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-03-24 17:13:04 +0100 |
commit | 95b3b770fe3d3acf20ff1d2a0c8ddf1fd9c2758c (patch) | |
tree | 19ccf3b61514b6366b12f2187eeba41daaa42e61 /libstorycode/slide.c | |
parent | fcd38bd93ea076271a8b4bf2d277c9d710bb4a1a (diff) |
Implement image import
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; } |