Enlightenment CVS committal
Author : rephorm
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/lib
Modified Files:
Edje.h edje_load.c
Log Message:
edje_object_file_set() now returns 1 on success and 0 on failure.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/Edje.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- Edje.h 1 Sep 2003 02:53:08 -0000 1.19
+++ Edje.h 29 Sep 2003 20:43:37 -0000 1.20
@@ -27,7 +27,7 @@
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));
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_load.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- edje_load.c 7 Sep 2003 05:16:08 -0000 1.26
+++ edje_load.c 29 Sep 2003 20:43:37 -0000 1.27
@@ -7,18 +7,18 @@
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);
@@ -81,7 +81,7 @@
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;
@@ -189,7 +189,11 @@
_edje_thaw(ed);
_edje_unblock(ed);
_edje_unref(ed);
+ return 1;
}
+ else return 0;
+
+ return 1;
}
void
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs