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.
This commit is contained in:
Daniel Juyung Seo 2013-09-16 02:51:42 +09:00
parent d01af793a9
commit 244eb99691
1 changed files with 1 additions and 1 deletions

View File

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