summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9474e80)
-ecore_imf_context_event_callback_add(...) allocates memory
which is released using ecore_imf_context_event_callback_del(...)
-Documentation :
https://docs.enlightenment.org/auto/group__Ecore__IMF__Context__Group.html#ga7e0ef28b49fbdc54c4657d88a139d5f5
Change-Id: I8be41c3b7426954b46d97377e902ba0b3e86a770
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
const char *default_id = ecore_imf_context_default_id_get();
if (!default_id)
const char *default_id = ecore_imf_context_default_id_get();
if (!default_id)
- {
- SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Can't create ecore_imf_context\n");
- return;
- }
+ {
+ SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Can't create ecore_imf_context\n");
+ return;
+ }
tizen_keyboard.imf_context = ecore_imf_context_add(default_id);
tizen_keyboard.imf_context = ecore_imf_context_add(default_id);
ecore_imf_context_client_window_set(tizen_keyboard.imf_context, (void*)wind->id);
ecore_imf_context_event_callback_add(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_COMMIT , _ecore_imf_event_commit_cb, NULL);
ecore_imf_context_client_window_set(tizen_keyboard.imf_context, (void*)wind->id);
ecore_imf_context_event_callback_add(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_COMMIT , _ecore_imf_event_commit_cb, NULL);
ecore_imf_context_event_callback_add(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, _ecore_imf_event_preedit_changed_cb, NULL);
ecore_imf_context_event_callback_add(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, _ecore_imf_event_preedit_changed_cb, NULL);
ecore_imf_context_input_panel_event_callback_add (tizen_keyboard.imf_context, ECORE_IMF_INPUT_PANEL_STATE_EVENT, _ecore_imf_event_state_change_cb, NULL);
ecore_imf_context_cursor_position_set(tizen_keyboard.imf_context, 0);
ecore_imf_context_input_panel_event_callback_add (tizen_keyboard.imf_context, ECORE_IMF_INPUT_PANEL_STATE_EVENT, _ecore_imf_event_state_change_cb, NULL);
ecore_imf_context_cursor_position_set(tizen_keyboard.imf_context, 0);
if(tizen_keyboard.imf_context == NULL)
return;
if(tizen_keyboard.imf_context == NULL)
return;
+ ecore_imf_context_event_callback_del(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_COMMIT, _ecore_imf_event_commit_cb);
+ ecore_imf_context_event_callback_del(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, _ecore_imf_event_preedit_changed_cb);
+ ecore_imf_context_input_panel_event_callback_del(tizen_keyboard.imf_context, ECORE_IMF_CALLBACK_PREEDIT_CHANGED, _ecore_imf_event_preedit_changed_cb);
+
ecore_imf_context_del(tizen_keyboard.imf_context);
tizen_keyboard.imf_context = NULL;
ecore_imf_context_del(tizen_keyboard.imf_context);
tizen_keyboard.imf_context = NULL;
Tizen_ShowScreenKeyboard(_this, window);
}
Tizen_ShowScreenKeyboard(_this, window);
}
void
Tizen_StopTextInput(_THIS)
{
void
Tizen_StopTextInput(_THIS)
{
SDL_bool
Tizen_HasScreenKeyboardSupport(_THIS)
{
return SDL_TRUE;
}
SDL_bool
Tizen_HasScreenKeyboardSupport(_THIS)
{
return SDL_TRUE;
}
void
Tizen_ShowScreenKeyboard(_THIS, SDL_Window * window)
{
void
Tizen_ShowScreenKeyboard(_THIS, SDL_Window * window)
{