[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[core/elementary] master 01/01: elm_spinner.c: consider style name starting with "vertical" is a vertical spinner.



seoz pushed a commit to branch master.

commit 4b1597bab9c733ecadd3fa39d2420292f41aa468
Author: Daniel Juyung Seo <seojuyung2@gmail.com>
Date:   Mon Sep 16 02:51:42 2013 +0900

    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.
---
 src/lib/elm_spinner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index 7a91f1a..53b89f7 100644
--- a/src/lib/elm_spinner.c
+++ b/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)

--