#include "Debug.h"
#include "w-input-selector.h"
-#include "w-input-smartreply.h"
#define EMOTICON_CNT 27
-static int previous_icon = -1;
-
using namespace std;
typedef struct {
int code;
- char* name;
+ const char* name;
}Emoticon;
Emoticon emoticon_info[EMOTICON_CNT] = {
return ECORE_CALLBACK_PASS_ON;
}
-static char *_access_info_prepend_cb(void *data, Evas_Object *obj)
-{
- PRINTFUNC(DLOG_DEBUG, "%s", __func__);
-
- std::string text;
-
- if (previous_icon == 10 || previous_icon == 11){
- text = std::string("Page") + " " +std::string(dgettext(PACKAGE, emoticon_info[previous_icon].name));
- text = text + " " + gettext("WDS_TTS_TBBODY_DOUBLE_TAP_TO_SEND");
- } else {
- text = std::string("Page");
- }
- return strdup(text.c_str());
-}
-
static void _rotary_selector_item_clicked(void *data, Evas_Object *obj, void *event_info)
{
PRINTFUNC(DLOG_DEBUG, "%s", __func__);
const Eina_Unicode unicode_event[2] = { emoticon_info[i].code, 0 };
char* utf_8 = eina_unicode_unicode_to_utf8(unicode_event, &length);
- input_smartreply_send_feedback(utf_8);
- if(ad->reply_type == REPLY_APP_CONTROL)
- reply_to_sender_by_appcontrol(data, (const char*)utf_8, "emoticon");
- else
- reply_to_sender_by_callback((const char*)utf_8, "emoticon");
+ reply_to_sender_by_callback((const char*)utf_8, "emoticon");
PRINTFUNC(SECURE_DEBUG, "[%d]%s", i, utf_8);
if (utf_8)
if (!ad)
return;
- Eext_Object_Item *first_it;
Evas_Object *rotary_selector = eext_rotary_selector_add(ad->naviframe);
// uxt_theme_object_replace_color(rotary_selector, "B01153", "AO0117");
Evas_Object *img = NULL;
Eext_Object_Item *item = eext_rotary_selector_item_append(rotary_selector);
- if (i == 0) first_it = item;
-
img = elm_image_add(rotary_selector);
elm_image_file_set(img, get_emoticon_file_name(i), NULL);
eext_rotary_selector_item_part_content_set(item, "item,bg_image", EEXT_ROTARY_SELECTOR_ITEM_STATE_NORMAL, img);