elm: elc_popup: access: Read %s, title
authorShilpa Singh <shilpa.singh@samsung.com>
Tue, 28 Nov 2017 09:13:33 +0000 (14:43 +0530)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 10:13:38 +0000 (19:13 +0900)
Change-Id: I60edbb781149f1bfc0ff59ce7a9244b24b446fa5

src/lib/elementary/elc_popup.c

index 7b8ba3c..355638d 100644 (file)
@@ -1034,8 +1034,18 @@ _item_new(Elm_Popup_Item_Data *it)
 static char *
 _access_info_cb(void *data, Evas_Object *obj EINA_UNUSED)
 {
+   Eina_Strbuf *buf;
    Elm_Popup_Data *priv = data;
-   return priv->title_text ? strdup(priv->title_text) : NULL;
+   char *ret = NULL;
+   if (priv->title_text)
+     {
+        buf = eina_strbuf_new();
+        eina_strbuf_append_printf(buf, "%s, %s", priv->title_text, N_("Title"));
+        ret = eina_strbuf_string_steal(buf);
+        eina_strbuf_free(buf);
+        return strdup(ret);
+     }
+   return NULL;
 }
 //