raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=d52a9683f5447b367b8d4227a2f762d53dd0d7da

commit d52a9683f5447b367b8d4227a2f762d53dd0d7da
Author: Shinwoo Kim <kimcinoo....@gmail.com>
Date:   Thu Jan 8 18:54:30 2015 +0900

    [spinner] use strncmp, not strcmp to support styles starting with vertical
    
    Summary: Use strncpm, not strcmp to support styles starting with vertical
    
    Test Plan: Define spinner style which has 'vertcial' as a prefix
    
    Reviewers: raster, cedric, seoz, woohyun, jaehwan, Hermet, jpeg
    
    Subscribers: seoz
    
    Differential Revision: https://phab.enlightenment.org/D1839
---
 src/lib/elm_spinner.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index 7043b39..135f586 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -590,7 +590,7 @@ _access_activate_cb(void *data,
    Evas_Object *eo, *inc_btn;
    const char* increment_part;
 
-   if (!strcmp(elm_widget_style_get(data), "vertical"))
+   if (!strncmp(elm_widget_style_get(data), "vertical", 8))
      increment_part = "up_bt";
    else
      increment_part = "right_bt";
@@ -632,7 +632,7 @@ _access_spinner_register(Evas_Object *obj, Eina_Bool 
is_access)
    const char* increment_part;
    const char* decrement_part;
 
-   if (!strcmp(elm_widget_style_get(obj), "vertical"))
+   if (!strncmp(elm_widget_style_get(obj), "vertical", 8))
      {
         increment_part = "up_bt";
         decrement_part = "down_bt";
@@ -807,7 +807,7 @@ _elm_spinner_elm_widget_focus_next(Eo *obj, 
Elm_Spinner_Data *_pd EINA_UNUSED, E
    const char* increment_part;
    const char* decrement_part;
 
-   if (!strcmp(elm_widget_style_get(obj), "vertical"))
+   if (!strncmp(elm_widget_style_get(obj), "vertical", 8))
      {
         increment_part = "up_bt";
         decrement_part = "down_bt";

-- 


Reply via email to