bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=22b005ea8a8f0774de3b34f54eaed9b60e712bc2

commit 22b005ea8a8f0774de3b34f54eaed9b60e712bc2
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Nov 27 08:12:52 2019 -0500

    efl_ui/layout: unconditionally emit theme,changed event for legacy layouts
    
    this will automatically be optimized by smart callback internals and fix
    emission of this event
    
    Reviewed-by: Marcel Hollerbach <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D10750
---
 src/lib/elementary/efl_ui_layout.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_layout.c 
b/src/lib/elementary/efl_ui_layout.c
index e540f4201d..941b5f9512 100644
--- a/src/lib/elementary/efl_ui_layout.c
+++ b/src/lib/elementary/efl_ui_layout.c
@@ -540,7 +540,9 @@ _efl_ui_layout_theme_internal(Eo *obj, Efl_Ui_Layout_Data 
*sd, Elm_Widget_Smart_
    if (ret != EFL_UI_THEME_APPLY_ERROR_GENERIC)
      {
         if (sd->cb_theme_changed)
-          efl_event_callback_legacy_call(obj, 
EFL_UI_LAYOUT_EVENT_THEME_CHANGED, NULL);
+          efl_event_callback_call(obj, EFL_UI_LAYOUT_EVENT_THEME_CHANGED, 
NULL);
+        if (elm_widget_is_legacy(obj))
+          evas_object_smart_callback_call(obj, "theme,changed", NULL);
      }
 
    if (!_visuals_refresh(obj, sd))

-- 


Reply via email to