forked from enlightenment/efl
oops - forgot to cxhange deprecated calls in externals
SVN revision: 68695
This commit is contained in:
parent
04e5806097
commit
7a8cef6b6f
|
@ -7,8 +7,8 @@ typedef struct _Elm_Params_Notify Elm_Params_Notify;
|
|||
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;
|
||||
|
||||
|
@ -55,8 +55,8 @@ static void external_notify_state_set(void *data __UNUSED__,
|
|||
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)
|
||||
|
@ -79,10 +79,10 @@ static Eina_Bool external_notify_param_set(void *data __UNUSED__,
|
|||
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"))
|
||||
|
@ -114,10 +114,10 @@ static Eina_Bool external_notify_param_get(void *data __UNUSED__,
|
|||
/* 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"))
|
||||
|
@ -160,10 +160,10 @@ static void * external_notify_params_parse(void *data __UNUSED__, Evas_Object *o
|
|||
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);
|
||||
|
@ -189,7 +189,7 @@ static void external_notify_params_free(void *params) {
|
|||
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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue