Now, if user passes the parent object of obj as the sub object,
then it reverses the obj - subobj relationship.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67823
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
Elm_Theme *th, *pth = elm_widget_theme_get(sobj);
Eina_Bool mirrored, pmirrored = elm_widget_mirrored_get(obj);
+ if (sobj == sd->parent_obj)
+ {
+ elm_widget_sub_object_del(sobj, obj);
+ WRN("You passed a parent object of obj = %p as the sub object = %p!", obj, sobj);
+ }
+
if (_elm_widget_is(sobj))
{
Smart_Data *sd2 = evas_object_smart_data_get(sobj);