forked from enlightenment/efl
[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:
parent
6f293dcf5f
commit
e649486e58
|
@ -590,7 +590,7 @@ _access_activate_cb(void *data,
|
||||||
Evas_Object *eo, *inc_btn;
|
Evas_Object *eo, *inc_btn;
|
||||||
const char* increment_part;
|
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";
|
increment_part = "up_bt";
|
||||||
else
|
else
|
||||||
increment_part = "right_bt";
|
increment_part = "right_bt";
|
||||||
|
@ -632,7 +632,7 @@ _access_spinner_register(Evas_Object *obj, Eina_Bool is_access)
|
||||||
const char* increment_part;
|
const char* increment_part;
|
||||||
const char* decrement_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";
|
increment_part = "up_bt";
|
||||||
decrement_part = "down_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* increment_part;
|
||||||
const char* decrement_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";
|
increment_part = "up_bt";
|
||||||
decrement_part = "down_bt";
|
decrement_part = "down_bt";
|
||||||
|
|
Loading…
Reference in New Issue