Summary:
efl_ui_layout_object_theme_set without checking return value.
so add return value check and log message.
Test Plan: N/A
Reviewers: SanghyeonLee, Jaehyun_Cho
Reviewed By: Jaehyun_Cho
Subscribers: Hermet, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7070
Change-Id: I9b2a28f390ce6886384c8f0e3ae007fcf4d4f1a6
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL);
- efl_ui_layout_object_theme_set(obj, "list", "base", efl_ui_widget_style_get(obj));
+ Efl_Ui_Theme_Apply theme_apply = efl_ui_layout_object_theme_set(obj, "list", "base", efl_ui_widget_style_get(obj));
+ if (theme_apply == EFL_UI_THEME_APPLY_FAILED)
+ CRI("list(%p) failed to set theme [efl/list:%s]!", obj, efl_ui_widget_style_get(obj) ?: "NULL");
pd->smanager = efl_add(EFL_UI_SCROLL_MANAGER_CLASS, obj);
efl_ui_mirrored_set(pd->smanager, efl_ui_mirrored_get(obj));