Assorted fixes to slideshow in lib and externals

Patch by Thiago Masaki


SVN revision: 47845
This commit is contained in:
Iván Briano 2010-04-08 20:16:21 +00:00
parent 415e38c50c
commit 7c413d98dd
2 changed files with 4 additions and 4 deletions

View 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__)

View 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;