{
Edje_Image_Directory_Set *de = NULL, *de_last = NULL;
Edje_Image_Directory_Set_Entry *dim = NULL;
+ Eet_File *eetf;
unsigned int i, j, k;
Eina_List *used;
Eina_Iterator *it;
--ed->file->image_dir->sets_count;
+ /* open the eet file */
+ eetf = eet_open(ed->path, EET_FILE_MODE_READ_WRITE);
+ if (!eetf)
+ {
+ ERR("Unable to open \"%s\" for writing output", ed->path);
+ return EINA_FALSE;
+ }
+
if (de_last->id != de->id)
{
Edje_Part *part;
}
}
}
+ if (!_edje_edit_collection_save(eetf, pce->ref))
+ {
+ eet_close(eetf);
+ return EINA_FALSE;
+ }
}
eina_iterator_free(it);
}
sizeof(Edje_Image_Directory_Set_Entry) *
ed->file->image_dir->sets_count);
+ eet_close(eetf);
+
return EINA_TRUE;
}
Eina_Iterator *it;
Edje_Part_Collection_Directory_Entry *pce;
Edje_Part *part;
+ Eet_File *eetf;
Edje_Part_Description_Image *part_desc_image;
unsigned int i, j, k;
int image_id, new_image_id;
it = eina_hash_iterator_data_new(ed->file->collection);
+ /* open the eet file */
+ eetf = eet_open(ed->path, EET_FILE_MODE_READ_WRITE);
+ if (!eetf)
+ {
+ ERR("Unable to open \"%s\" for writing output", ed->path);
+ return EINA_FALSE;
+ }
+
EINA_ITERATOR_FOREACH(it, pce)
{
for (i = 0; i < pce->ref->parts_count; i++)
part_desc_image->image.id = new_image_id;
}
}
+ if (!_edje_edit_collection_save(eetf, pce->ref))
+ {
+ eet_close(eetf);
+ return EINA_FALSE;
+ }
}
}
eina_iterator_free(it);
+ eet_close(eetf);
+
return EINA_TRUE;
}
}
}
}
+ if (!_edje_edit_collection_save(eetf, pce->ref))
+ {
+ eet_close(eetf);
+ return EINA_FALSE;
+ }
}
eina_iterator_free(it);
}