Eina_Bool
_edje_edit_real_part_add(Evas_Object *obj, const char *name, Edje_Part_Type type, const char *source)
{
+ Edje_Part_Collection_Directory_Entry *ce;
Edje_Part_Collection *pc;
Edje_Part **tmp;
Edje_Part *ep;
edje_edit_state_add(obj, name, "default", 0.0);
edje_edit_part_selected_state_set(obj, name, "default", 0.0);
+ ce = eina_hash_find(ed->file->collection, ed->group);
+ ce->count.part++;
+
return EINA_TRUE;
}
evas_object_hide(ed->clipper);
edje_object_calc_force(obj);
+
+ ce = eina_hash_find(ed->file->collection, ed->group);
+ ce->count.part--;
+
return EINA_TRUE;
}
break;
}
+#define DEC_COUNT(Type) case EDJE_PART_TYPE_##Type: ce->count.Type--; break;
+
+ switch (rp->part->type)
+ {
+ DEC_COUNT(RECTANGLE);
+ DEC_COUNT(TEXT);
+ DEC_COUNT(IMAGE);
+ DEC_COUNT(SWALLOW);
+ DEC_COUNT(TEXTBLOCK);
+ DEC_COUNT(GROUP);
+ DEC_COUNT(BOX);
+ DEC_COUNT(TABLE);
+ DEC_COUNT(EXTERNAL);
+ }
+
_edje_collection_free_part_description_free(rp->part->type, pd, ce, 0);
}