Enable help popup in only mobile profile 14/118714/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 14 Mar 2017 00:43:03 +0000 (09:43 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 14 Mar 2017 00:43:03 +0000 (09:43 +0900)
Change-Id: I30bf1af9f9e15907cfc0379eed7d591bdf2670f7
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise.cpp

index 0bef874..2a86040 100644 (file)
@@ -75,7 +75,9 @@ static string g_current_punctuation[MAX_DEFAULT_PUNCTUATION-1] = {"RCENT1", "RCE
 static vector<string> 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;