summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2014-11-21 13:38:12 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-11-21 13:38:12 +0900
commite581aa2c4d6030f18935432f28697c21d57a4597 (patch)
tree999bbc3699ba5d0115ea737499737b07022f0dd9
parenta3387375dbfeaf4605d15bfa56bb4cbda2febf3b (diff)
multibuttonentry: use !strcmp() instead for comparison.
Reviewers: seoz Subscribers: seoz Differential Revision: https://phab.enlightenment.org/D1680
-rw-r--r--src/lib/elc_multibuttonentry.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c
index 6d1703b08..51d1d74a0 100644
--- a/src/lib/elc_multibuttonentry.c
+++ b/src/lib/elc_multibuttonentry.c
@@ -1002,8 +1002,8 @@ _layout_key_down_cb(void *data,
1002 if (sd->last_btn_select) 1002 if (sd->last_btn_select)
1003 { 1003 {
1004 if (sd->selected_it && 1004 if (sd->selected_it &&
1005 ((strcmp(ev->key, "BackSpace") == 0) || 1005 ((!strcmp(ev->key, "BackSpace")) ||
1006 (strcmp(ev->key, "Delete") == 0))) 1006 (!strcmp(ev->key, "Delete"))))
1007 { 1007 {
1008 Elm_Multibuttonentry_Item_Data *item = sd->selected_it; 1008 Elm_Multibuttonentry_Item_Data *item = sd->selected_it;
1009 if (item && sd->editable) 1009 if (item && sd->editable)
@@ -1013,8 +1013,8 @@ _layout_key_down_cb(void *data,
1013 } 1013 }
1014 } 1014 }
1015 else if (((!sd->selected_it && (sd->n_str == 0) && 1015 else if (((!sd->selected_it && (sd->n_str == 0) &&
1016 (strcmp(ev->key, "BackSpace") == 0)) || 1016 (!strcmp(ev->key, "BackSpace"))) ||
1017 (strcmp(ev->key, "Delete") == 0))) 1017 (!strcmp(ev->key, "Delete"))))
1018 { 1018 {
1019 Elm_Object_Item *eo_item = eina_list_data_get(eina_list_last(sd->items)); 1019 Elm_Object_Item *eo_item = eina_list_data_get(eina_list_last(sd->items));
1020 if (eo_item) 1020 if (eo_item)