From f924a626df91b85f446e4ae9da2258e7185bd5b5 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 14 Mar 2017 09:43:03 +0900 Subject: [PATCH] Enable help popup in only mobile profile Change-Id: I30bf1af9f9e15907cfc0379eed7d591bdf2670f7 Signed-off-by: Jihoon Kim --- src/ise.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ise.cpp b/src/ise.cpp index 0bef874..2a86040 100644 --- a/src/ise.cpp +++ b/src/ise.cpp @@ -75,7 +75,9 @@ static string g_current_punctuation[MAX_DEFAULT_PUNCTUATION-1] = {"RCENT1", "RCE static vector g_softcandidate_string; static bool g_softcandidate_show = false; static bool g_caps_mode_pending = false; +#ifdef _MOBILE static Ecore_Timer *guideline_timer = NULL; +#endif #define SOFT_CANDIDATE_DELETE_TIME (1.0/100) static Ecore_Timer *g_softcandidate_hide_timer = NULL; @@ -1073,9 +1075,10 @@ bool ise_is_guideline_popup_enable_layout(void) return ret; } +#ifdef _MOBILE static Eina_Bool popup_guideline_timer_cb(void *data) { - if ((!g_config_values.first_guidechange)&&(_language_manager.get_enabled_languages_num() > 1)) { + if ((!g_config_values.first_guidechange) && (_language_manager.get_enabled_languages_num() > 1)) { ise_show_help_popup(MVK_space); g_config_values.first_guidechange = TRUE; write_ise_config_values(); @@ -1084,6 +1087,7 @@ static Eina_Bool popup_guideline_timer_cb(void *data) guideline_timer = NULL; return ECORE_CALLBACK_CANCEL; } +#endif void ise_show(int ic) @@ -1275,9 +1279,12 @@ ise_show(int ic) #ifdef _IVI g_ui->enable_button("CM_KEY", false); #endif + +#ifdef _MOBILE if (ise_is_guideline_popup_enable_layout()) { guideline_timer = ecore_timer_add(0.1, popup_guideline_timer_cb, NULL); } +#endif } g_keyboard_state.visible_state = TRUE; -- 2.7.4