typedef struct _Elm_Params_Slideshow
{
Elm_Params base;
- int timeout;
+ double timeout;
const char *transition;
const char *layout;
Eina_Bool loop:1;
{
if (!strcmp(param->name, "timeout"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT)
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
{
- elm_slideshow_timeout_set(obj, param->i);
+ elm_slideshow_timeout_set(obj, param->d);
return EINA_TRUE;
}
}
{
if (!strcmp(param->name, "timeout"))
{
- if (param->type == EDJE_EXTERNAL_PARAM_TYPE_INT)
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
{
- param->i = elm_slideshow_timeout_get(obj);
+ param->d = elm_slideshow_timeout_get(obj);
return EINA_TRUE;
}
}
{
if (!strcmp(param->name, "timeout"))
{
- mem->timeout = param->i;
+ mem->timeout = param->d;
mem->timeout_exists = EINA_TRUE;
}
else if (!strcmp(param->name, "loop"))
static Edje_External_Param_Info external_slideshow_params[] = {
DEFINE_EXTERNAL_COMMON_PARAMS,
- EDJE_EXTERNAL_PARAM_INFO_INT("timeout"),
+ EDJE_EXTERNAL_PARAM_INFO_DOUBLE("timeout"),
EDJE_EXTERNAL_PARAM_INFO_BOOL("loop"),
EDJE_EXTERNAL_PARAM_INFO_CHOICE_FULL("transition", "fade", transitions),
EDJE_EXTERNAL_PARAM_INFO_CHOICE_FULL("layout", "fullscreen", layout),