#define MY_CLASS_NAME_LEGACY "Evas_Object_Smart"
#define EVAS_OBJECT_SMART_GET_OR_RETURN(eo_obj, ...) \
- Evas_Smart_Data *o = efl_data_scope_safe_get(eo_obj, EFL_CANVAS_GROUP_CLASS); \
+ Evas_Smart_Data *o = efl_data_scope_safe_get(eo_obj, MY_CLASS); \
do { if (!o) { MAGIC_CHECK_FAILED(eo_obj,0,MAGIC_SMART) return __VA_ARGS__; } } while (0)
extern Eina_Hash* signals_hash_table;
if (obj->is_smart)
{
- member_o = efl_data_scope_get(eo_obj, EFL_CANVAS_GROUP_CLASS);
+ member_o = efl_data_scope_get(eo_obj, MY_CLASS);
if ((member_o->inherit_paragraph_direction) &&
(member_o->paragraph_direction != o->paragraph_direction))
if (obj->is_smart)
{
- member_o = efl_data_scope_get(eo_obj, EFL_CANVAS_GROUP_CLASS);
+ member_o = efl_data_scope_get(eo_obj, MY_CLASS);
if ((member_o->inherit_paragraph_direction) &&
(member_o->paragraph_direction != EVAS_BIDI_DIRECTION_NEUTRAL))
eo_e = evas_find(eo_e);
EINA_SAFETY_ON_FALSE_RETURN_VAL(efl_isa(eo_e, EVAS_CANVAS_CLASS), NULL);
- eo_obj = efl_add(EFL_CANVAS_GROUP_CLASS, eo_e, efl_canvas_object_legacy_ctor(efl_added));
+ eo_obj = efl_add(MY_CLASS, eo_e, efl_canvas_object_legacy_ctor(efl_added));
evas_object_smart_attach(eo_obj, s);
return eo_obj;
}
void
_evas_object_smart_clipped_smart_move_internal(Evas_Object *eo_obj, Evas_Coord x, Evas_Coord y)
{
- Evas_Smart_Data *o = efl_data_scope_get(eo_obj, EFL_CANVAS_GROUP_CLASS);
+ Evas_Smart_Data *o = efl_data_scope_get(eo_obj, MY_CLASS);
Evas_Coord orig_x, orig_y;
orig_x = o->x;
if (o->is_smart)
{
- member_o = efl_data_scope_get(o->object, EFL_CANVAS_GROUP_CLASS);
+ member_o = efl_data_scope_get(o->object, MY_CLASS);
if ((member_o->inherit_paragraph_direction) &&
(member_o->paragraph_direction != dir))
if (obj->smart.parent)
{
- parent = efl_data_scope_get(obj->smart.parent, EFL_CANVAS_GROUP_CLASS);
+ parent = efl_data_scope_get(obj->smart.parent, MY_CLASS);
if (parent)
parent_dir = parent->paragraph_direction;