summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-03-12 10:51:14 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-03-12 10:51:14 +0000
commitec52433f3aef648aefdcf5199ac3424c25b07a9e (patch)
tree168114cc3c8b44a53b36ddd1476221cb6fe12a64
parentaa7be1a96de83871db284e4fb924e6dc0ccaed59 (diff)
elm - fix emitting of signals to theme for label existence
@fix
-rw-r--r--src/lib/elementary/efl_ui_layout.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_layout.c b/src/lib/elementary/efl_ui_layout.c
index f912043397..ae757b1bb4 100644
--- a/src/lib/elementary/efl_ui_layout.c
+++ b/src/lib/elementary/efl_ui_layout.c
@@ -1463,9 +1463,10 @@ _efl_ui_layout_text_generic_set(Eo *obj, Efl_Ui_Layout_Data *sd, const char *par
1463 { 1463 {
1464 if ((sub_d->type == TEXT) && (!strcmp(part, sub_d->part))) 1464 if ((sub_d->type == TEXT) && (!strcmp(part, sub_d->part)))
1465 { 1465 {
1466 if (!text) 1466 if ((!text) || (text[0] == 0))
1467 { 1467 {
1468 _text_signal_emit(sd, sub_d, EINA_FALSE); 1468 if ((!strcmp(part, "elm.text") || !strcmp(part, "efl.text")))
1469 _text_signal_emit(sd, sub_d, EINA_FALSE);
1469 eina_stringshare_del(sub_d->part); 1470 eina_stringshare_del(sub_d->part);
1470 free(sub_d); 1471 free(sub_d);
1471 edje_object_part_text_escaped_set 1472 edje_object_part_text_escaped_set
@@ -1479,7 +1480,7 @@ _efl_ui_layout_text_generic_set(Eo *obj, Efl_Ui_Layout_Data *sd, const char *par
1479 } 1480 }
1480 } 1481 }
1481 1482
1482 if (!text) return EINA_TRUE; 1483 if ((!text) || (text[0] == 0)) return EINA_TRUE;
1483 1484
1484 if (elm_widget_is_legacy(obj)) 1485 if (elm_widget_is_legacy(obj))
1485 { 1486 {
@@ -1505,7 +1506,8 @@ _efl_ui_layout_text_generic_set(Eo *obj, Efl_Ui_Layout_Data *sd, const char *par
1505 sd->subs = eina_list_append(sd->subs, sub_d); 1506 sd->subs = eina_list_append(sd->subs, sub_d);
1506 } 1507 }
1507 1508
1508 _text_signal_emit(sd, sub_d, EINA_TRUE); 1509 if ((!strcmp(part, "elm.text") || !strcmp(part, "efl.text")))
1510 _text_signal_emit(sd, sub_d, EINA_TRUE);
1509 1511
1510 efl_canvas_group_change(obj); 1512 efl_canvas_group_change(obj);
1511 1513