struct _Elm_Params_Notify {
Elm_Params base;
Evas_Object *content; /* part name whose obj is to be set as content */
- Eina_Bool repeat_events_exists;
- Eina_Bool repeat_events;
+ Eina_Bool allow_events_exists;
+ Eina_Bool allow_events;
Eina_Bool timeout_exists;
double timeout;
if (p->content) {
elm_object_content_set(obj, p->content);
}
- if (p->repeat_events_exists)
- elm_notify_repeat_events_set(obj, p->repeat_events);
+ if (p->allow_events_exists)
+ elm_notify_allow_events_set(obj, p->allow_events);
if (p->timeout_exists)
elm_notify_timeout_set(obj, p->timeout);
if (p->orient)
elm_object_content_set(obj, content);
return EINA_TRUE;
}
- else if ((!strcmp(param->name, "repeat_events"))
+ else if ((!strcmp(param->name, "allow_events"))
&& (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL))
{
- elm_notify_repeat_events_set(obj, param->i);
+ elm_notify_allow_events_set(obj, param->i);
return EINA_TRUE;
}
else if ((!strcmp(param->name, "timeout"))
/* not easy to get content name back from live object */
return EINA_FALSE;
}
- else if ((!strcmp(param->name, "repeat_events"))
+ else if ((!strcmp(param->name, "allow_events"))
&& (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL))
{
- param->i = elm_notify_repeat_events_get(obj);
+ param->i = elm_notify_allow_events_get(obj);
return EINA_TRUE;
}
else if ((!strcmp(param->name, "timeout"))
mem->timeout = param->d;
mem->timeout_exists = EINA_TRUE;
}
- else if (!strcmp(param->name, "repeat_events"))
+ else if (!strcmp(param->name, "allow_events"))
{
- mem->repeat_events = param->i;
- mem->repeat_events_exists = EINA_TRUE;
+ mem->allow_events = param->i;
+ mem->allow_events_exists = EINA_TRUE;
}
else if (!strcmp(param->name, "orient"))
mem->orient = eina_stringshare_add(param->s);
static Edje_External_Param_Info external_notify_params[] = {
DEFINE_EXTERNAL_COMMON_PARAMS,
EDJE_EXTERNAL_PARAM_INFO_STRING("content"),
- EDJE_EXTERNAL_PARAM_INFO_BOOL("repeat_events"),
+ EDJE_EXTERNAL_PARAM_INFO_BOOL("allow_events"),
EDJE_EXTERNAL_PARAM_INFO_DOUBLE("timeout"),
EDJE_EXTERNAL_PARAM_INFO_SENTINEL
};