{
const char *part;
Evas_Object *obj;
- enum {
- SWALLOW,
- BOX_APPEND,
- BOX_PREPEND,
- BOX_INSERT_BEFORE,
- BOX_INSERT_AT,
- TABLE_PACK,
- TEXT
- } type;
- union {
- union {
- const Evas_Object *reference;
- unsigned int pos;
- } box;
- struct {
- unsigned short col, row, colspan, rowspan;
- } table;
- struct {
- const char *text;
- } text;
- } p;
+ enum
+ {
+ SWALLOW,
+ BOX_APPEND,
+ BOX_PREPEND,
+ BOX_INSERT_BEFORE,
+ BOX_INSERT_AT,
+ TABLE_PACK,
+ TEXT
+ } type;
+ union
+ {
+ union
+ {
+ const Evas_Object *reference;
+ unsigned int pos;
+ } box;
+ struct
+ {
+ unsigned short col, row, colspan, rowspan;
+ } table;
+ struct
+ {
+ const char *text;
+ } text;
+ } p;
};
struct _Part_Cursor
EINA_LIST_FOREACH(wd->subs, l, si)
{
if (si->type == TEXT)
- edje_object_part_text_set(wd->lay, si->part, si->p.text.text);
+ edje_object_part_text_escaped_set(wd->lay, si->part, si->p.text.text);
}
}
eina_stringshare_del(si->part);
eina_stringshare_del(si->p.text.text);
free(si);
- edje_object_part_text_set(wd->lay, part, NULL);
+ edje_object_part_text_escaped_set(wd->lay, part, NULL);
wd->subs = eina_list_remove_list(wd->subs, l);
return;
}
}
eina_stringshare_replace(&si->p.text.text, text);
- edje_object_part_text_set(wd->lay, part, text);
+ edje_object_part_text_escaped_set(wd->lay, part, text);
_request_sizing_eval(wd);
}
Subinfo *si;
const Eina_List *l;
if (!wd) return;
+ EINA_SAFETY_ON_NULL_RETURN(part);
EINA_LIST_FOREACH(wd->subs, l, si)
{
if ((si->type == SWALLOW) && (!strcmp(part, si->part)))