From 244eb9969189757b7365d3bf0159fc2b036139eb Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Mon, 16 Sep 2013 02:51:42 +0900 Subject: [PATCH] elm_spinner.c: consider style name starting with "vertical" is a vertical spinner. I think it's better to introduce elm_spinner_vertical_set() API to explicitly show the vertical mode but I will keep this new code for the backward compatibility. --- legacy/elementary/src/lib/elm_spinner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_spinner.c b/legacy/elementary/src/lib/elm_spinner.c index 7a91f1a..53b89f7 100644 --- a/legacy/elementary/src/lib/elm_spinner.c +++ b/legacy/elementary/src/lib/elm_spinner.c @@ -436,7 +436,7 @@ _elm_spinner_smart_event(Eo *obj, void *_pd EINA_UNUSED, va_list *list) void *event_info = va_arg(*list, void *); Eina_Bool *ret = va_arg(*list, Eina_Bool *); if (ret) *ret = EINA_FALSE; - Eina_Bool horz = !!strcmp(elm_widget_style_get(obj), "vertical"); + Eina_Bool horz = !!strncmp(elm_widget_style_get(obj), "vertical", 8); if (elm_widget_disabled_get(obj)) return; if (type == EVAS_CALLBACK_KEY_DOWN) -- 2.7.4