[SDL_TIZEN] code clean up
[platform/upstream/SDL.git] / src / video / tizen / SDL_tizenkeyboard.c
index 506d40f..39da3f8 100755 (executable)
@@ -33,7 +33,6 @@ void
 _ecore_imf_event_commit_cb(void *data, Ecore_IMF_Context *ctx EINA_UNUSED, void *event_info)
 {
     char *commit_str = (char *)event_info;
-    SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "commit string : %s\n", commit_str);
     SDL_SendKeyboardText(commit_str);
     return;
 }
@@ -47,7 +46,6 @@ _ecore_imf_event_preedit_changed_cb(void *data, Ecore_IMF_Context *ctx, void *ev
 
     // get preedit string and attributes
     ecore_imf_context_preedit_string_with_attributes_get(imf_context, &preedit_string, NULL, &cursor_pos);
-    SDL_Log("preedit string : %s, %d", preedit_string, cursor_pos);
 
     SDL_SendEditingText(preedit_string, 0, cursor_pos);
     free(preedit_string);
@@ -58,7 +56,6 @@ _ecore_imf_event_state_change_cb(void *data, Ecore_IMF_Context *ctx EINA_UNUSED,
 {
     //ECORE_IMF_INPUT_PANEL_STATE_SHOW : 0
     //ECORE_IMF_INPUT_PANEL_STATE_HIDE : 1
-    SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "Keyboard State  : %d\n", value);
     return;
 }
 
@@ -83,7 +80,7 @@ void Tizen_InitKeyboard(_THIS)
     const char *default_id = ecore_imf_context_default_id_get();
     if (!default_id)
       {
-         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Can't create ecore_imf_context\n");
+         SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Can't create ecore_imf_context\n");
          return;
       }
 
@@ -125,7 +122,7 @@ Tizen_StartTextInput(_THIS)
     SDL_Window *window;
 
     if (!_this) {
-        SDL_SetError("Video subsystem must be initialized");
+        SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Video subsystem must be initialized");
         return;
     }
 
@@ -134,7 +131,7 @@ Tizen_StartTextInput(_THIS)
 
     window = SDL_GetKeyboardFocus();
     if(!window){
-       SDL_SetError("Keyboard focused window is NULL");
+       SDL_LogError(SDL_LOG_CATEGORY_ASSERT, "Keyboard focused window is NULL");
        return;
     }
     Tizen_ShowScreenKeyboard(_this, window);