forked from enlightenment/efl
elm_datetime, efl_ui_clock : Add check 'legacy widget' for layout signal emission
Summary: 08a11d, Signal name is changed to efl ui signal name legacy widget should use elm This commit resolves T6928 #efl, #regression Test Plan: elementary_test -to datetime Reviewers: JackDanielZ, Jaehyun_Cho, Hermet, YOhoho, devilhorns, zmike Reviewed By: zmike Subscribers: YOhoho, cedric, Hermet, Jaehyun_Cho, #committers, JackDanielZ, zmike Tags: #efl Maniphest Tasks: T6928 Differential Revision: https://phab.enlightenment.org/D6289
This commit is contained in:
parent
b1d2f2c49a
commit
20404d79d4
|
@ -396,12 +396,18 @@ _reload_format(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), EDC_PART_FIELD_ENABLE_SIG_STR,
|
snprintf(buf, sizeof(buf), EDC_PART_FIELD_ENABLE_SIG_STR,
|
||||||
field->location);
|
field->location);
|
||||||
|
if (elm_widget_is_legacy(obj))
|
||||||
|
elm_layout_signal_emit(obj, buf, "elm");
|
||||||
|
else
|
||||||
elm_layout_signal_emit(obj, buf, "efl");
|
elm_layout_signal_emit(obj, buf, "efl");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), EDC_PART_FIELD_DISABLE_SIG_STR,
|
snprintf(buf, sizeof(buf), EDC_PART_FIELD_DISABLE_SIG_STR,
|
||||||
field->location);
|
field->location);
|
||||||
|
if (elm_widget_is_legacy(obj))
|
||||||
|
elm_layout_signal_emit(obj, buf, "elm");
|
||||||
|
else
|
||||||
elm_layout_signal_emit(obj, buf, "efl");
|
elm_layout_signal_emit(obj, buf, "efl");
|
||||||
}
|
}
|
||||||
if (field->location + 1)
|
if (field->location + 1)
|
||||||
|
@ -535,6 +541,9 @@ _efl_ui_clock_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Clock_Data *sd)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), EDC_PART_FIELD_ENABLE_SIG_STR,
|
snprintf(buf, sizeof(buf), EDC_PART_FIELD_ENABLE_SIG_STR,
|
||||||
field->location);
|
field->location);
|
||||||
|
if (elm_widget_is_legacy(obj))
|
||||||
|
elm_layout_signal_emit(obj, buf, "elm");
|
||||||
|
else
|
||||||
elm_layout_signal_emit(obj, buf, "efl");
|
elm_layout_signal_emit(obj, buf, "efl");
|
||||||
|
|
||||||
if (field->location)
|
if (field->location)
|
||||||
|
@ -549,6 +558,9 @@ _efl_ui_clock_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Clock_Data *sd)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), EDC_PART_FIELD_DISABLE_SIG_STR,
|
snprintf(buf, sizeof(buf), EDC_PART_FIELD_DISABLE_SIG_STR,
|
||||||
field->location);
|
field->location);
|
||||||
|
if (elm_widget_is_legacy(obj))
|
||||||
|
elm_layout_signal_emit(obj, buf, "elm");
|
||||||
|
else
|
||||||
elm_layout_signal_emit(obj, buf, "efl");
|
elm_layout_signal_emit(obj, buf, "efl");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -993,6 +1005,9 @@ _efl_ui_clock_field_visible_set(Eo *obj, Efl_Ui_Clock_Data *sd, Efl_Ui_Clock_Typ
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), EDC_PART_FIELD_ENABLE_SIG_STR,
|
snprintf(buf, sizeof(buf), EDC_PART_FIELD_ENABLE_SIG_STR,
|
||||||
field->location);
|
field->location);
|
||||||
|
if (elm_widget_is_legacy(obj))
|
||||||
|
elm_layout_signal_emit(obj, buf, "elm");
|
||||||
|
else
|
||||||
elm_layout_signal_emit(obj, buf, "efl");
|
elm_layout_signal_emit(obj, buf, "efl");
|
||||||
|
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||||
|
@ -1010,6 +1025,9 @@ _efl_ui_clock_field_visible_set(Eo *obj, Efl_Ui_Clock_Data *sd, Efl_Ui_Clock_Typ
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), EDC_PART_FIELD_DISABLE_SIG_STR,
|
snprintf(buf, sizeof(buf), EDC_PART_FIELD_DISABLE_SIG_STR,
|
||||||
field->location);
|
field->location);
|
||||||
|
if (elm_widget_is_legacy(obj))
|
||||||
|
elm_layout_signal_emit(obj, buf, "elm");
|
||||||
|
else
|
||||||
elm_layout_signal_emit(obj, buf, "efl");
|
elm_layout_signal_emit(obj, buf, "efl");
|
||||||
|
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||||
|
|
Loading…
Reference in New Issue