path: root/src/bin/edje
diff options
authorMike Blumenkrantz <>2019-02-27 13:17:09 -0500
committerMike Blumenkrantz <>2019-02-27 13:17:10 -0500
commit6326e18b3fb2a4757f8ffa22be5d55a75da23049 (patch)
tree31d586b52638aa0d0b1c759869a8e3368c9daf5d /src/bin/edje
parent7924660d54500285d3844bfa384394c683825cd9 (diff)
efl.file: improve api a bit
Summary: the previous implementation/api had a number of issues: * "file" property contained both "file" and "key" values - also performed file loading operation * "load_error" property which was specific to image objects * no methods for controlling file loading/unloading this patch attempts the following changes: * split "file" property into "file" and "key" properties - also remove "key" from existing "mmap" property * remove "load_error" * directly return error codes from operations * add "load" and "unload" methods for directly controlling load state * add implicit file loading if file/mmap is set during construction * rewrite all efl.file implementations to move file loading into load() method * rewrite all usage of efl.file api based on these changes * add C extension functions to mimic previous behavior ref T7577 Reviewers: segfaultxavi, bu5hm4n, cedric Reviewed By: segfaultxavi Subscribers: vitor.sousa, #reviewers, #committers Tags: #efl_api Maniphest Tasks: T7577 Differential Revision:
Diffstat (limited to 'src/bin/edje')
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 90c7d8f46c..096631d5ec 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -1432,7 +1432,9 @@ data_write_vectors(Eet_File *ef, int *vector_num)
1432 if (!f) continue; 1432 if (!f) continue;
1433 eina_file_close(f); 1433 eina_file_close(f);
1434 1434
1435 if (!efl_file_set(vg, eina_strbuf_string_get(buf), NULL)) 1435 if (efl_file_set(vg, eina_strbuf_string_get(buf)))
1436 error_and_abort(ef, "Failed to parse svg : %s", vector->entry);
1437 if (efl_file_load(vg))
1436 error_and_abort(ef, "Failed to parse svg : %s", vector->entry); 1438 error_and_abort(ef, "Failed to parse svg : %s", vector->entry);
1437 1439
1438 eina_strbuf_reset(buf); 1440 eina_strbuf_reset(buf);