forked from enlightenment/efl
[evas] Interfaces improvement.
iface add() before smart add() is better. SVN revision: 73991
This commit is contained in:
parent
39040ba07a
commit
fb2a822637
|
@ -9675,8 +9675,8 @@ struct _Evas_Smart_Interface
|
||||||
{
|
{
|
||||||
const char *name; /**< Name of the given interface */
|
const char *name; /**< Name of the given interface */
|
||||||
unsigned private_size; /**< Size, in bytes, of the interface's private dada blob. This will be allocated and freed automatically for you. Get it with evas_object_smart_interface_data_get(). */
|
unsigned private_size; /**< Size, in bytes, of the interface's private dada blob. This will be allocated and freed automatically for you. Get it with evas_object_smart_interface_data_get(). */
|
||||||
Eina_Bool (*add)(Evas_Object *obj); /**< Function to be called at object creation time */
|
Eina_Bool (*add)(Evas_Object *obj); /**< Function to be called at object creation time. This will take place @b before the object's smart @c add() function. */
|
||||||
void (*del)(Evas_Object *obj); /**< Function to be called at object deletion time */
|
void (*del)(Evas_Object *obj); /**< Function to be called at object deletion time. This will take place @b after the object's smart @c del() function. */
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -448,8 +448,6 @@ evas_object_smart_add(Evas *e, Evas_Smart *s)
|
||||||
|
|
||||||
_evas_smart_class_ifaces_private_data_alloc(obj, s);
|
_evas_smart_class_ifaces_private_data_alloc(obj, s);
|
||||||
|
|
||||||
if (s->smart_class->add) s->smart_class->add(obj);
|
|
||||||
|
|
||||||
for (i = 0; i < s->interfaces.size; i++)
|
for (i = 0; i < s->interfaces.size; i++)
|
||||||
{
|
{
|
||||||
const Evas_Smart_Interface *iface;
|
const Evas_Smart_Interface *iface;
|
||||||
|
@ -466,6 +464,8 @@ evas_object_smart_add(Evas *e, Evas_Smart *s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (s->smart_class->add) s->smart_class->add(obj);
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue