static void
_keyboard_mode_changed_cb(keynode_t *key, void* data)
{
- int val = 0;
- if (vconf_get_bool(VCONFKEY_ISF_HW_KEYBOARD_INPUT_DETECTED, &val) == 0)
+ bool val = vconf_keynode_get_bool(key);
+ LOGD("keyboard mode : %d\n", val);
+
+ if (val == false)
{
- if (val == 0)
- {
- /* Switching to S/W keyboard mode, hide input panel since it could be displaying candidate only */
- if (g_disable_show_panel && g_text_input && g_text_input->resource && g_client)
- _input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);
- g_disable_show_panel = EINA_FALSE;
- }
- else
- {
- /* Switching to H/W keyboard mode, hide input panel only if there is no candidate */
- if (!g_show_state_candidate && g_text_input && g_text_input->resource && g_client)
- _input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);
- g_disable_show_panel = EINA_TRUE;
- }
+ /* Switching to S/W keyboard mode, hide input panel since it could be displaying candidate only */
+ if (g_disable_show_panel && g_text_input && g_text_input->resource && g_client)
+ _input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);
+
+ g_disable_show_panel = EINA_FALSE;
+ }
+ else
+ {
+ /* Switching to H/W keyboard mode, hide input panel only if there is no candidate */
+ if (!g_show_state_candidate && g_text_input && g_text_input->resource && g_client)
+ _input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);
+
+ g_disable_show_panel = EINA_TRUE;
}
}
_display_language_changed_cb(keynode_t *key, void* data)
{
int loop;
- char *language = vconf_get_str(VCONFKEY_LANGSET);
+ char *language = vconf_keynode_get_str(key);
+ LOGD("language : %s\n", language);
/* Just in case we did not find any matching language string */
g_keymap_index = 0;
g_keymap_index = loop;
}
}
- free(language);
}
/* We do not want to change the current keymap related behavior in TV profile for now */
if (!_TV)