forked from enlightenment/efl
Edje text_classes: Fixed usage of stringshare_replace.
SVN revision: 73603
This commit is contained in:
parent
c62f3a2bb5
commit
ae1d0e3a9b
|
@ -826,8 +826,7 @@ edje_text_class_set(const char *text_class, const char *font, Evas_Font_Size siz
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
|
||||||
/* Update the class found */
|
/* Update the class found */
|
||||||
eina_stringshare_del(tc->font);
|
eina_stringshare_replace(&tc->font, font);
|
||||||
tc->font = eina_stringshare_add(font);
|
|
||||||
tc->size = size;
|
tc->size = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -926,9 +925,7 @@ edje_object_text_class_set(Evas_Object *obj, const char *text_class, const char
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
|
||||||
/* Update new text class properties */
|
/* Update new text class properties */
|
||||||
if (tc->font) eina_stringshare_del(tc->font);
|
eina_stringshare_replace(&tc->font, font);
|
||||||
if (font) tc->font = eina_stringshare_add(font);
|
|
||||||
else tc->font = NULL;
|
|
||||||
tc->size = size;
|
tc->size = size;
|
||||||
|
|
||||||
/* Update edje */
|
/* Update edje */
|
||||||
|
@ -951,8 +948,7 @@ edje_object_text_class_set(Evas_Object *obj, const char *text_class, const char
|
||||||
free(tc);
|
free(tc);
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
if (font) tc->font = eina_stringshare_add(font);
|
tc->font = eina_stringshare_add(font);
|
||||||
else tc->font = NULL;
|
|
||||||
tc->size = size;
|
tc->size = size;
|
||||||
|
|
||||||
for (i = 0; i < ed->table_parts_size; i++)
|
for (i = 0; i < ed->table_parts_size; i++)
|
||||||
|
|
Loading…
Reference in New Issue