Evas_Object *edje_object_add (Evas *evas);
const char *edje_object_data_get (Evas_Object *obj, const char *key);
- void edje_object_file_set (Evas_Object *o, const char *file, const char *part);
+ int edje_object_file_set (Evas_Object *o, const char *file, const char *part);
void edje_object_file_get (Evas_Object *o, const char **file, const char **part);
void edje_object_signal_callback_add (Evas_Object *o, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source), void *data);
void *edje_object_signal_callback_del (Evas_Object *o, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source));
static int _edje_collection_free_prog_cache_matches_free_cb(Evas_Hash *hash, const char *key, void *data, void *fdata);
/* API Routines */
-void
+int
edje_object_file_set(Evas_Object *obj, const char *file, const char *part)
{
Edje *ed;
ed = _edje_fetch(obj);
- if (!ed) return;
+ if (!ed) return 0;
if (!file) file = "";
if (!part) part = "";
if (((ed->path) && (!strcmp(file, ed->path))) &&
(ed->part) && (!strcmp(part, ed->part)))
- return;
+ return 0;
_edje_file_del(ed);
ep = l->data;
rp = calloc(1, sizeof(Edje_Real_Part));
- if (!rp) return;
+ if (!rp) return 0;
rp->part = ep;
ed->parts = evas_list_append(ed->parts, rp);
rp->param1.description = ep->default_desc;
_edje_thaw(ed);
_edje_unblock(ed);
_edje_unref(ed);
+ return 1;
}
+ else return 0;
+
+ return 1;
}
void