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 <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D10750
This commit is contained in:
Mike Blumenkrantz 2019-11-27 08:12:52 -05:00 committed by Marcel Hollerbach
parent d434bee31b
commit 22b005ea8a
1 changed files with 3 additions and 1 deletions

View File

@ -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))