summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <kimcinoo.efl@gmail.com>2015-01-08 18:54:30 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-01-08 18:54:30 +0900
commitd52a9683f5447b367b8d4227a2f762d53dd0d7da (patch)
treef8552e54da4f232e80e39f30b74c59ae200e3c66
parentb115cc1a93a849dbe019b4310a361eb3d4a48291 (diff)
[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
-rw-r--r--src/lib/elm_spinner.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index 7043b3959..135f58602 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -590,7 +590,7 @@ _access_activate_cb(void *data,
590 Evas_Object *eo, *inc_btn; 590 Evas_Object *eo, *inc_btn;
591 const char* increment_part; 591 const char* increment_part;
592 592
593 if (!strcmp(elm_widget_style_get(data), "vertical")) 593 if (!strncmp(elm_widget_style_get(data), "vertical", 8))
594 increment_part = "up_bt"; 594 increment_part = "up_bt";
595 else 595 else
596 increment_part = "right_bt"; 596 increment_part = "right_bt";
@@ -632,7 +632,7 @@ _access_spinner_register(Evas_Object *obj, Eina_Bool is_access)
632 const char* increment_part; 632 const char* increment_part;
633 const char* decrement_part; 633 const char* decrement_part;
634 634
635 if (!strcmp(elm_widget_style_get(obj), "vertical")) 635 if (!strncmp(elm_widget_style_get(obj), "vertical", 8))
636 { 636 {
637 increment_part = "up_bt"; 637 increment_part = "up_bt";
638 decrement_part = "down_bt"; 638 decrement_part = "down_bt";
@@ -807,7 +807,7 @@ _elm_spinner_elm_widget_focus_next(Eo *obj, Elm_Spinner_Data *_pd EINA_UNUSED, E
807 const char* increment_part; 807 const char* increment_part;
808 const char* decrement_part; 808 const char* decrement_part;
809 809
810 if (!strcmp(elm_widget_style_get(obj), "vertical")) 810 if (!strncmp(elm_widget_style_get(obj), "vertical", 8))
811 { 811 {
812 increment_part = "up_bt"; 812 increment_part = "up_bt";
813 decrement_part = "down_bt"; 813 decrement_part = "down_bt";