forked from enlightenment/efl
elm_cursor: restore compat with previous theme api
adding new theme groups/parts is fine, but compat must be maintained for
released theme api: anything which is namespaced
ref 1422e61e62
This commit is contained in:
parent
7d720f5ede
commit
06db737a23
|
@ -98,6 +98,8 @@ group { name: "elm/cursor/hand1/default";
|
|||
rel2.offset: 0 0;
|
||||
}
|
||||
}
|
||||
/* elm.content.hotspot is the old name for the above part */
|
||||
alias: "elm.content.hotspot" "elm.swallow.hotspot";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,6 +111,8 @@ group { name: "elm/cursor/blank/default";
|
|||
max: 1 1;
|
||||
}
|
||||
}
|
||||
/* elm.content.hotspot is the old name for the above part */
|
||||
alias: "elm.content.hotspot" "elm.swallow.hotspot";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -137,6 +141,8 @@ group { name: "elm/cursor/xterm/default";
|
|||
rel2.offset: 0 0;
|
||||
}
|
||||
}
|
||||
/* elm.content.hotspot is the old name for the above part */
|
||||
alias: "elm.content.hotspot" "elm.swallow.hotspot";
|
||||
part { name: "shine";
|
||||
description { state: "default" 0.0;
|
||||
rel1.to: "base";
|
||||
|
|
|
@ -277,7 +277,16 @@ _elm_cursor_obj_add(Evas_Object *obj, Elm_Cursor *cur)
|
|||
_elm_cursor_hot_change, cur);
|
||||
evas_object_event_callback_add(cur->hotobj, EVAS_CALLBACK_RESIZE,
|
||||
_elm_cursor_hot_change, cur);
|
||||
edje_object_part_swallow(cur->obj, "elm.swallow.hotspot", cur->hotobj);
|
||||
if (edje_object_part_exists(cur->obj, "elm.swallow.hotspot"))
|
||||
edje_object_part_swallow(cur->obj, "elm.swallow.hotspot", cur->hotobj);
|
||||
else if (edje_object_part_exists(cur->obj, "elm.content.hotspot"))
|
||||
edje_object_part_swallow(cur->obj, "elm.content.hotspot", cur->hotobj);
|
||||
else
|
||||
{
|
||||
ELM_SAFE_FREE(cur->hotobj, evas_object_del);
|
||||
ELM_SAFE_FREE(cur->obj, evas_object_del);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
evas_object_event_callback_add(cur->obj, EVAS_CALLBACK_DEL,
|
||||
_elm_cursor_obj_del, cur);
|
||||
|
|
Loading…
Reference in New Issue