summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2010-03-05 17:31:29 +0000
committerGustavo Lima Chaves <glima@profusion.mobi>2010-03-05 17:31:29 +0000
commit2571227fc413667b4e691487e203184ca5d4ac58 (patch)
tree2bda6216956b5b6031552223181efe699dbf4156 /legacy
parent9033f052635ec92d9eba67be3eda31de5efa09c7 (diff)
Sorry for assuming o bool return on that function.
Thanks for pointing out, JaMa. SVN revision: 46893
Diffstat (limited to '')
-rw-r--r--legacy/edje/src/lib/Edje_Edit.h2
-rw-r--r--legacy/edje/src/lib/edje_edit.c22
2 files changed, 14 insertions, 10 deletions
diff --git a/legacy/edje/src/lib/Edje_Edit.h b/legacy/edje/src/lib/Edje_Edit.h
index 22fbe197ca..873da3c9da 100644
--- a/legacy/edje/src/lib/Edje_Edit.h
+++ b/legacy/edje/src/lib/Edje_Edit.h
@@ -533,7 +533,7 @@ edje_edit_external_add(
533); 533);
534 534
535/** Delete the given external from the list. */ 535/** Delete the given external from the list. */
536EAPI void 536EAPI Eina_Bool
537edje_edit_external_del( 537edje_edit_external_del(
538 Evas_Object *obj, ///< The edje object 538 Evas_Object *obj, ///< The edje object
539 const char *external ///< The name for the external to delete 539 const char *external ///< The name for the external to delete
diff --git a/legacy/edje/src/lib/edje_edit.c b/legacy/edje/src/lib/edje_edit.c
index c87a9accee..0662f0136d 100644
--- a/legacy/edje/src/lib/edje_edit.c
+++ b/legacy/edje/src/lib/edje_edit.c
@@ -1621,32 +1621,34 @@ EAPI Eina_Bool
1621edje_edit_external_add(Evas_Object *obj, const char *external) 1621edje_edit_external_add(Evas_Object *obj, const char *external)
1622{ 1622{
1623 Edje_External_Directory_Entry *e; 1623 Edje_External_Directory_Entry *e;
1624 GET_ED_OR_RETURN(0); 1624 GET_ED_OR_RETURN(EINA_FALSE);
1625 1625
1626 e = _edje_edit_external_get(ed, external); 1626 e = _edje_edit_external_get(ed, external);
1627 if (e) return 0; 1627 if (e) return EINA_FALSE;
1628 1628
1629 e = _alloc(sizeof(Edje_External_Directory_Entry)); 1629 e = _alloc(sizeof(Edje_External_Directory_Entry));
1630 if (!e) return 0; 1630 if (!e) return EINA_FALSE;
1631 e->entry = (char*)eina_stringshare_add(external); 1631 e->entry = (char*)eina_stringshare_add(external);
1632 1632
1633 if (!ed->file->external_dir) 1633 if (!ed->file->external_dir)
1634 ed->file->external_dir = _alloc(sizeof(Edje_External_Directory)); 1634 ed->file->external_dir = _alloc(sizeof(Edje_External_Directory));
1635 ed->file->external_dir->entries = eina_list_append(ed->file->external_dir->entries, e); 1635 ed->file->external_dir->entries = \
1636 return 1; 1636 eina_list_append(ed->file->external_dir->entries, e);
1637 return EINA_TRUE;
1637} 1638}
1638 1639
1639EAPI void 1640EAPI Eina_Bool
1640edje_edit_external_del(Evas_Object *obj, const char *external) 1641edje_edit_external_del(Evas_Object *obj, const char *external)
1641{ 1642{
1642 Edje_External_Directory_Entry *e; 1643 Edje_External_Directory_Entry *e;
1643 1644
1644 GET_ED_OR_RETURN(); 1645 GET_ED_OR_RETURN(EINA_FALSE);
1645 1646
1646 e = _edje_edit_external_get(ed, external); 1647 e = _edje_edit_external_get(ed, external);
1647 if (!e) return; 1648 if (!e) return EINA_FALSE;
1648 1649
1649 ed->file->external_dir->entries = eina_list_remove(ed->file->external_dir->entries, e); 1650 ed->file->external_dir->entries = \
1651 eina_list_remove(ed->file->external_dir->entries, e);
1650 if (!ed->file->external_dir->entries) 1652 if (!ed->file->external_dir->entries)
1651 { 1653 {
1652 free(ed->file->external_dir); 1654 free(ed->file->external_dir);
@@ -1655,6 +1657,8 @@ edje_edit_external_del(Evas_Object *obj, const char *external)
1655 1657
1656 _edje_if_string_free(ed, e->entry); 1658 _edje_if_string_free(ed, e->entry);
1657 free(e); 1659 free(e);
1660
1661 return EINA_TRUE;
1658} 1662}
1659 1663
1660/***************/ 1664/***************/