[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
This commit is contained in:
Shinwoo Kim 2015-01-08 18:54:30 +09:00 committed by Carsten Haitzler (Rasterman)
parent 6f293dcf5f
commit e649486e58
1 changed files with 3 additions and 3 deletions

View File

@ -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";