discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=20404d79d43876c546ba8e969f6cb9ea38122772

commit 20404d79d43876c546ba8e969f6cb9ea38122772
Author: JunsuChoi <[email protected]>
Date:   Thu Jun 14 08:55:50 2018 -0400

    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
---
 src/lib/elementary/efl_ui_clock.c | 30 ++++++++++++++++++++++++------
 1 file changed, 24 insertions(+), 6 deletions(-)

diff --git a/src/lib/elementary/efl_ui_clock.c 
b/src/lib/elementary/efl_ui_clock.c
index 95c569ae64..80f201ab26 100644
--- a/src/lib/elementary/efl_ui_clock.c
+++ b/src/lib/elementary/efl_ui_clock.c
@@ -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);

-- 


Reply via email to