From 22b005ea8a8f0774de3b34f54eaed9b60e712bc2 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 27 Nov 2019 08:12:52 -0500 Subject: [PATCH] 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 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))