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
This commit is contained in:
Jean-Philippe Andre 2017-02-21 18:14:36 +09:00
parent 882ad6fbf5
commit 629acbc545
1 changed files with 1 additions and 4 deletions

View File

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