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:
junsu choi 2018-06-14 08:55:50 -04:00 committed by Mike Blumenkrantz
parent b1d2f2c49a
commit 20404d79d4
1 changed files with 24 additions and 6 deletions

View File

@ -396,13 +396,19 @@ _reload_format(Evas_Object *obj)
{
snprintf(buf, sizeof(buf), EDC_PART_FIELD_ENABLE_SIG_STR,
field->location);
elm_layout_signal_emit(obj, buf, "efl");
if (elm_widget_is_legacy(obj))
elm_layout_signal_emit(obj, buf, "elm");
else
elm_layout_signal_emit(obj, buf, "efl");
}
else
{
snprintf(buf, sizeof(buf), EDC_PART_FIELD_DISABLE_SIG_STR,
field->location);
elm_layout_signal_emit(obj, buf, "efl");
if (elm_widget_is_legacy(obj))
elm_layout_signal_emit(obj, buf, "elm");
else
elm_layout_signal_emit(obj, buf, "efl");
}
if (field->location + 1)
{
@ -535,7 +541,10 @@ _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,
field->location);
elm_layout_signal_emit(obj, buf, "efl");
if (elm_widget_is_legacy(obj))
elm_layout_signal_emit(obj, buf, "elm");
else
elm_layout_signal_emit(obj, buf, "efl");
if (field->location)
{
@ -549,7 +558,10 @@ _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,
field->location);
elm_layout_signal_emit(obj, buf, "efl");
if (elm_widget_is_legacy(obj))
elm_layout_signal_emit(obj, buf, "elm");
else
elm_layout_signal_emit(obj, buf, "efl");
}
}
@ -993,7 +1005,10 @@ _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,
field->location);
elm_layout_signal_emit(obj, buf, "efl");
if (elm_widget_is_legacy(obj))
elm_layout_signal_emit(obj, buf, "elm");
else
elm_layout_signal_emit(obj, buf, "efl");
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
edje_object_message_signal_process(wd->resize_obj);
@ -1010,7 +1025,10 @@ _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,
field->location);
elm_layout_signal_emit(obj, buf, "efl");
if (elm_widget_is_legacy(obj))
elm_layout_signal_emit(obj, buf, "elm");
else
elm_layout_signal_emit(obj, buf, "efl");
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
edje_object_message_signal_process(wd->resize_obj);