From a3675dbb0b2591531bee3000dbe2c8c8202e945b Mon Sep 17 00:00:00 2001 From: Haifeng Deng Date: Mon, 3 Aug 2015 18:05:57 +0800 Subject: [PATCH] Update EMOTICON_GROUP_RECENTLY_USED_NUM Change-Id: Ie35a9b227d8ac183d9bcdcd0b07bf3659592a15c Signed-off-by: Haifeng Deng --- src/include/ise-emoticon-mode.h | 2 +- src/ise-emoticon-mode.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/ise-emoticon-mode.cpp diff --git a/src/include/ise-emoticon-mode.h b/src/include/ise-emoticon-mode.h index 8b28c2a..9311d6f 100755 --- a/src/include/ise-emoticon-mode.h +++ b/src/include/ise-emoticon-mode.h @@ -20,7 +20,7 @@ #ifdef SUPPORTS_EMOTICONS -#define EMOTICON_GROUP_RECENTLY_USED_NUM 16 +#define EMOTICON_GROUP_RECENTLY_USED_NUM 18 #define EMOTICON_GROUP_1_NUM 77 #define EMOTICON_GROUP_2_NUM 157 #define EMOTICON_GROUP_3_NUM 178 diff --git a/src/ise-emoticon-mode.cpp b/src/ise-emoticon-mode.cpp old mode 100644 new mode 100755 index 4fc68cb..38f8d4a --- a/src/ise-emoticon-mode.cpp +++ b/src/ise-emoticon-mode.cpp @@ -554,6 +554,8 @@ static void _item_selected(void *data, Evas_Object *obj, void *event_info) it = find(emoticon_list_recent.begin(), emoticon_list_recent.end(), ti->keyevent); if (it != emoticon_list_recent.end()) emoticon_list_recent.erase(it); + else + emoticon_list_recent.erase(emoticon_list_recent.end() - 1); emoticon_list_recent.insert(emoticon_list_recent.begin(),ti->keyevent); } ise_write_recent_emoticon_list_to_scim(); -- 2.7.4