forked from enlightenment/efl
elm - fix emitting of signals to theme for label existence
@fix
This commit is contained in:
parent
aa7be1a96d
commit
ec52433f3a
|
@ -1463,8 +1463,9 @@ _efl_ui_layout_text_generic_set(Eo *obj, Efl_Ui_Layout_Data *sd, const char *par
|
|||
{
|
||||
if ((sub_d->type == TEXT) && (!strcmp(part, sub_d->part)))
|
||||
{
|
||||
if (!text)
|
||||
if ((!text) || (text[0] == 0))
|
||||
{
|
||||
if ((!strcmp(part, "elm.text") || !strcmp(part, "efl.text")))
|
||||
_text_signal_emit(sd, sub_d, EINA_FALSE);
|
||||
eina_stringshare_del(sub_d->part);
|
||||
free(sub_d);
|
||||
|
@ -1479,7 +1480,7 @@ _efl_ui_layout_text_generic_set(Eo *obj, Efl_Ui_Layout_Data *sd, const char *par
|
|||
}
|
||||
}
|
||||
|
||||
if (!text) return EINA_TRUE;
|
||||
if ((!text) || (text[0] == 0)) return EINA_TRUE;
|
||||
|
||||
if (elm_widget_is_legacy(obj))
|
||||
{
|
||||
|
@ -1505,6 +1506,7 @@ _efl_ui_layout_text_generic_set(Eo *obj, Efl_Ui_Layout_Data *sd, const char *par
|
|||
sd->subs = eina_list_append(sd->subs, sub_d);
|
||||
}
|
||||
|
||||
if ((!strcmp(part, "elm.text") || !strcmp(part, "efl.text")))
|
||||
_text_signal_emit(sd, sub_d, EINA_TRUE);
|
||||
|
||||
efl_canvas_group_change(obj);
|
||||
|
|
Loading…
Reference in New Issue