From 37236c3df8e885ea5fc9da8a2420b9952e419efc Mon Sep 17 00:00:00 2001 From: Bora Hwang Date: Tue, 4 Jun 2013 19:39:36 +0900 Subject: [PATCH] [ctxpopup][access] P130603-4130: TTS doesn't read "icon" for icon+text style Change-Id: I7183a22049ee0913e35f90694a0442fc16d5bb9f --- src/lib/elc_ctxpopup.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index 04bd6d5..0483ec8 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -220,7 +220,6 @@ _access_info_cb(void *data, Evas_Object *obj __UNUSED__) Elm_Ctxpopup_Item *it = (Elm_Ctxpopup_Item *)data; const char *txt = NULL; Evas_Object *icon = NULL; - Eina_Strbuf *buf = NULL; char *str = NULL; if (!it) return NULL; @@ -228,18 +227,8 @@ _access_info_cb(void *data, Evas_Object *obj __UNUSED__) txt = it->label; icon = it->icon; - if (txt && icon) - { - buf = eina_strbuf_new(); - eina_strbuf_append(buf, E_("icon ")); - eina_strbuf_append(buf, txt); - str = eina_strbuf_string_steal(buf); - eina_strbuf_free(buf); - return str; - } - else if ((!txt) && icon) return strdup(E_("icon")); - else if (txt && (!icon)) return strdup(txt); - + if (txt) return strdup(txt); + if (icon) return strdup(E_("icon")); return NULL; } -- 2.7.4