forked from enlightenment/efl
Assorted fixes to slideshow in lib and externals
Patch by Thiago Masaki SVN revision: 47845
This commit is contained in:
parent
415e38c50c
commit
7c413d98dd
|
@ -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__)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue