jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=629acbc545ce65c5710f095715bd3a6c6298b781
commit 629acbc545ce65c5710f095715bd3a6c6298b781 Author: Jean-Philippe Andre <[email protected]> Date: Tue Feb 21 18:14:36 2017 +0900 dayselector: Fix DaySelector widget An invalid strcmp() led to always reject the swallowed widgets, which were Elm.Check instead of Elm_Check. Use efl_isa() instead. Fixes T5034 --- src/lib/elementary/elm_dayselector.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/elementary/elm_dayselector.c b/src/lib/elementary/elm_dayselector.c index 6a8a30b..985a533 100644 --- a/src/lib/elementary/elm_dayselector.c +++ b/src/lib/elementary/elm_dayselector.c @@ -225,11 +225,8 @@ _elm_dayselector_content_set(Eo *obj, Elm_Dayselector_Data *sd, const char *item int day; char buf[1024]; Elm_Dayselector_Item_Data *it = NULL; - const char *type = elm_object_widget_type_get(content); - - if (type && strcmp(type, "Elm_Check")) - return EINA_FALSE; + EINA_SAFETY_ON_FALSE_RETURN_VAL(efl_isa(content, EFL_UI_NSTATE_CLASS), EINA_FALSE); if (!item) return EINA_FALSE; day = atoi(item + (strlen(item) - 1)); --
