summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_dayselector.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-02-21 18:14:36 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-21 18:15:22 +0900
commit629acbc545ce65c5710f095715bd3a6c6298b781 (patch)
treed2042279fdce9b962ded216c7c28b2ccce5cfdab /src/lib/elementary/elm_dayselector.c
parent882ad6fbf5df6bbfe4a224fafc98992b37dbc668 (diff)
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
Diffstat (limited to 'src/lib/elementary/elm_dayselector.c')
-rw-r--r--src/lib/elementary/elm_dayselector.c5
1 files changed, 1 insertions, 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
225 int day; 225 int day;
226 char buf[1024]; 226 char buf[1024];
227 Elm_Dayselector_Item_Data *it = NULL; 227 Elm_Dayselector_Item_Data *it = NULL;
228 const char *type = elm_object_widget_type_get(content);
229
230 if (type && strcmp(type, "Elm_Check"))
231 return EINA_FALSE;
232 228
229 EINA_SAFETY_ON_FALSE_RETURN_VAL(efl_isa(content, EFL_UI_NSTATE_CLASS), EINA_FALSE);
233 if (!item) return EINA_FALSE; 230 if (!item) return EINA_FALSE;
234 231
235 day = atoi(item + (strlen(item) - 1)); 232 day = atoi(item + (strlen(item) - 1));