Assorted fixes to slideshow in lib and externals
authorIván Briano <sachieru@gmail.com>
Thu, 8 Apr 2010 20:16:21 +0000 (20:16 +0000)
committerIván Briano <sachieru@gmail.com>
Thu, 8 Apr 2010 20:16:21 +0000 (20:16 +0000)
Patch by Thiago Masaki

SVN revision: 47845

src/edje_externals/elm_slideshow.c
src/lib/elm_slideshow.c

index efcd983..657f95b 100644 (file)
@@ -9,8 +9,8 @@ typedef struct _Elm_Params_Slideshow
    Eina_Bool loop_exists:1;
 } Elm_Params_Slideshow;
 
-static const char *transitions[] = { "fade", "black_fade", "horizontal", "vertical",
-                             "square"};
+static const char *transitions[] = { "fade", "black_fade", "horizontal",
+                                    "vertical", "square", NULL};
 
 static void
 external_slideshow_state_set(void *data __UNUSED__, Evas_Object *obj, const void *from_params, const void *to_params, float pos __UNUSED__)
index e97dc6a..4ba6ccc 100644 (file)
@@ -421,7 +421,7 @@ elm_slideshow_transition_set(Evas_Object *obj, const char *transition)
 EAPI const char *
 elm_slideshow_transition_get(const Evas_Object *obj)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype);
+   ELM_CHECK_WIDTYPE(obj, widtype) NULL;
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return NULL;
    return wd->transition;
@@ -486,7 +486,7 @@ elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop)
 EAPI Eina_Bool
 elm_slideshow_loop_get(const Evas_Object *obj)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype);
+   ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd) return EINA_FALSE;
    return wd->loop;