typedef struct {
int code;
- char* name;
+ const char* name;
}Emoticon;
static Elm_Object_Item *it_emoticon_empty = NULL;
};
-static Eina_Bool _custom_back_cb(void *data, Elm_Object_Item *it)
-{
- _back_to_genlist_for_selector();
- return EINA_TRUE;
-}
-
-
//---------------------------------------------------------------------------------------//
static Eina_Bool _custom_back_cb2(void *data, Elm_Object_Item *it)
PRINTFUNC(DLOG_DEBUG, "str = %s", str);
if (str != NULL) {
- char *tok;
- tok = strtok(str, ",");
+ char *tok, *ptr;
+ tok = strtok_r(str, ",", &ptr);
while (tok != NULL) {
PRINTFUNC(DLOG_DEBUG, "tok = %s", tok);
emoticon_list.push_back(strtol(tok, (char **)NULL, 10));
- tok = strtok(NULL, ",");
+ tok = strtok_r(NULL, ",", &ptr);
}
}
void set_recent_emoticons(vector <int> &emoticon_list, int val)
{
- int i;
+ unsigned int i;
int ret = PREFERENCE_ERROR_NONE;
if (emoticon_list.size() > 0) {
set_recent_emoticons(recent_emoji_list, index);
int length;
- const Eina_Unicode unicode_event[2] = { emoticon_info[index].code, 0 };
+ const Eina_Unicode unicode_event[2] = { (unsigned int)emoticon_info[index].code, 0 };
char* utf_8 = eina_unicode_unicode_to_utf8(unicode_event, &length);
reply_to_sender_by_callback((const char*)utf_8, "emoticon");
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
int length;
- const Eina_Unicode unicode_event[2] = { emoticon_info[index].code, 0 };
+ const Eina_Unicode unicode_event[2] = { (unsigned int)emoticon_info[index].code, 0 };
char* utf_8 = eina_unicode_unicode_to_utf8(unicode_event, &length);
elm_object_part_text_set(btn, "elm.text", utf_8);
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
int length;
- const Eina_Unicode unicode_event[2] = { emoticon_info[recent_emoji_list.at(index)].code, 0 };
+ const Eina_Unicode unicode_event[2] = { (unsigned int)emoticon_info[recent_emoji_list.at(index)].code, 0 };
char* utf_8 = eina_unicode_unicode_to_utf8(unicode_event, &length);
elm_object_part_text_set(btn, "elm.text", utf_8);
emoticon_contents_pool[index+2].used = 0;
}
} else if (!strcmp(itc->item_style, "3button_flat_recent")) {
- int index = (int)elm_object_item_data_get(it);
+ unsigned int index = (int)elm_object_item_data_get(it);
//PRINTFUNC(DLOG_DEBUG,"index = %d",index);
if (index < recent_emoji_list.size()) {
static Evas_Object * __emoticon_gl_recent_content_get(void *data, Evas_Object *obj, const char *part)
{
if (is_content_reuse_on) {
- int index = (int)data;
+ unsigned int index = (unsigned int)data;
int new_index = 0;
//PRINTFUNC(DLOG_DEBUG,"%s %d", part, index);
return btn;
}
} else {
- int index = (int)data;
+ unsigned int index = (unsigned int)data;
int new_index = 0;
// PRINTFUNC(DLOG_DEBUG,"%s %d", part, index);
elm_object_part_text_set(btn, "elm.text", strdup(utf_8));
#else
int length;
- const Eina_Unicode unicode_event[2] = { emoticon_info[new_index].code, 0 };
+ const Eina_Unicode unicode_event[2] = { (unsigned int)emoticon_info[new_index].code, 0 };
char* utf_8 = eina_unicode_unicode_to_utf8(unicode_event, &length);
elm_object_part_text_set(btn, "elm.text", utf_8);
evas_object_data_set(btn, "index", (void*)new_index);
return;
}
- int i;
+ unsigned int i;
for (i = 0; i < recent_emoji_list.size(); i++ ) {
emoticon_recents_pool[i].index = i;
emoticon_recents_pool[i].content = get_recent_emoticon_button(parent, i);
if (!gl)
return;
- int i;
+ unsigned int i;
Elm_Object_Item *it = NULL;
Elm_Object_Item *first_it = NULL;