projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c5bb61
)
Fix eina_stringshare usage...thanks k-s :)
author
Christopher Michael
<cpmichael1@comcast.net>
Thu, 1 Apr 2010 23:14:16 +0000
(23:14 +0000)
committer
Christopher Michael
<cpmichael1@comcast.net>
Thu, 1 Apr 2010 23:14:16 +0000
(23:14 +0000)
SVN revision: 47674
src/bin/e_ilist.c
patch
|
blob
|
history
diff --git
a/src/bin/e_ilist.c
b/src/bin/e_ilist.c
index
74ff441
..
8e30acc
100644
(file)
--- a/
src/bin/e_ilist.c
+++ b/
src/bin/e_ilist.c
@@
-735,9
+735,8
@@
e_ilist_nth_label_set(Evas_Object *obj, int n, const char *label)
si = eina_list_nth(sd->items, n);
if (si)
{
- if (si->label) eina_stringshare_del(si->label);
- si->label = eina_stringshare_add(label);
- edje_object_part_text_set(si->o_base, "e.text.label", label);
+ if (eina_stringshare_replace(&si->label, label))
+ edje_object_part_text_set(si->o_base, "e.text.label", label);
}
}