(wd->resize_obj, part, content))
{
ERR("could not swallow %p into part '%s'", content, part);
+ elm_widget_sub_object_del(obj, content);
return EINA_FALSE;
}
sub_d = ELM_NEW(Elm_Layout_Sub_Object_Data);
+ if (!sub_d)
+ {
+ ERR("failed to allocate memory!");
+ edje_object_part_unswallow(wd->resize_obj, part);
+ elm_widget_sub_object_del(obj, content);
+ return EINA_FALSE;
+ }
sub_d->type = SWALLOW;
sub_d->part = eina_stringshare_add(part);
sub_d->obj = content;
}
sub_d = ELM_NEW(Elm_Layout_Sub_Object_Data);
+ if (!sub_d)
+ {
+ ERR("failed to allocate memory!");
+ elm_widget_sub_object_del(obj, child);
+ edje_object_part_box_remove(wd->resize_obj, part, child);
+ return EINA_FALSE;
+ }
sub_d->type = BOX_APPEND;
sub_d->part = eina_stringshare_add(part);
sub_d->obj = child;
}
sub_d = ELM_NEW(Elm_Layout_Sub_Object_Data);
+ if (!sub_d)
+ {
+ ERR("failed to allocate memory!");
+ elm_widget_sub_object_del(obj, child);
+ edje_object_part_box_remove(wd->resize_obj, part, child);
+ return EINA_FALSE;
+ }
sub_d->type = BOX_PREPEND;
sub_d->part = eina_stringshare_add(part);
sub_d->obj = child;
}
sub_d = ELM_NEW(Elm_Layout_Sub_Object_Data);
+ if (!sub_d)
+ {
+ ERR("failed to allocate memory!");
+ elm_widget_sub_object_del(obj, child);
+ edje_object_part_box_remove(wd->resize_obj, part, child);
+ return EINA_FALSE;
+ }
sub_d->type = BOX_INSERT_BEFORE;
sub_d->part = eina_stringshare_add(part);
sub_d->obj = child;
}
sub_d = ELM_NEW(Elm_Layout_Sub_Object_Data);
+ if (!sub_d)
+ {
+ ERR("failed to allocate memory!");
+ elm_widget_sub_object_del(obj, child);
+ edje_object_part_box_remove(wd->resize_obj, part, child);
+ return EINA_FALSE;
+ }
sub_d->type = BOX_INSERT_AT;
sub_d->part = eina_stringshare_add(part);
sub_d->obj = child;
}
sub_d = ELM_NEW(Elm_Layout_Sub_Object_Data);
+ if (!sub_d)
+ {
+ ERR("failed to allocate memory!");
+ elm_widget_sub_object_del(obj, child);
+ edje_object_part_table_unpack(wd->resize_obj, part, child);
+ return EINA_FALSE;
+ }
sub_d->type = TABLE_PACK;
sub_d->part = eina_stringshare_add(part);
sub_d->obj = child;