From: Jihoon Kim Date: Tue, 14 Mar 2017 00:43:03 +0000 (+0900) Subject: Enable help popup in only mobile profile X-Git-Tag: accepted/tizen/3.0/common/20170314.132537~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F118714%2F1;p=platform%2Fcore%2Fuifw%2Fise-default.git Enable help popup in only mobile profile Change-Id: I30bf1af9f9e15907cfc0379eed7d591bdf2670f7 Signed-off-by: Jihoon Kim --- 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;