zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=789b36398301c45c9bfda932dba3e74af75e9d82

commit 789b36398301c45c9bfda932dba3e74af75e9d82
Author: JunsuChoi <jsuya.c...@samsung.com>
Date:   Tue May 12 11:20:18 2020 -0400

    Efl.Ui.Progressbar_Legacy: Prevent unnecessary signal emit for contents
    
    Summary:
    When call elm_progressbar_add, theme_apply of layout is called and
    _efl_ui_progressbar_legacy_efl_ui_widget_theme_apply is called.
    Then it calls the signal emit for the icon.
    this call is unnecessary.
    
    Test Plan: N/A
    
    Reviewers: Hermet, bowonryu, Jaehyun_Cho, YOhoho, zmike
    
    Reviewed By: zmike
    
    Subscribers: zmike, cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D11811
---
 src/lib/elementary/efl_ui_progressbar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_progressbar.c 
b/src/lib/elementary/efl_ui_progressbar.c
index 882c408bf6..213579e375 100644
--- a/src/lib/elementary/efl_ui_progressbar.c
+++ b/src/lib/elementary/efl_ui_progressbar.c
@@ -771,7 +771,7 @@ _efl_ui_progressbar_legacy_efl_ui_widget_theme_apply(Eo 
*obj, void *_pd EINA_UNU
 
    int_ret = efl_ui_widget_theme_apply(efl_super(obj, 
EFL_UI_PROGRESSBAR_LEGACY_CLASS));
    if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
-   _icon_signal_emit(obj);
+   if (efl_finalized_get(obj)) _icon_signal_emit(obj);
 
    return int_ret;
 }

-- 


Reply via email to