Print the text input information in log
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 14 Mar 2017 11:30:28 +0000 (20:30 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 21 Mar 2017 05:56:51 +0000 (14:56 +0900)
Change-Id: If2a55039e5856d80e3a649c895623c32120e7bc2
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_main.c

index 89cf9d8..e114153 100644 (file)
@@ -1134,6 +1134,8 @@ _e_mod_ecore_key_down_cb(void *data, int type, void *event)
 static void
 _e_text_input_deactivate(E_Text_Input *text_input, E_Input_Method *input_method, Eina_Bool need_focus_in)
 {
+   LOGD("text_input : %p\n", text_input);
+
    if (text_input == g_text_input)
      {
         g_text_input = NULL;
@@ -1201,6 +1203,8 @@ _e_text_input_cb_activate(struct wl_client *client, struct wl_resource *resource
    input_method = wl_resource_get_user_data(g_input_method->resource);
    EINA_SAFETY_ON_NULL_GOTO(input_method, err);
 
+   LOGD("text_input : %p\n", text_input);
+
    old = input_method->input;
    if (old == text_input)
      return;
@@ -1208,7 +1212,8 @@ _e_text_input_cb_activate(struct wl_client *client, struct wl_resource *resource
    if (old)
      {
         _e_text_input_deactivate(old, input_method, EINA_TRUE);
-        if (g_input_panel_state == E_INPUT_PANEL_STATE_DID_SHOW || g_input_panel_state == E_INPUT_PANEL_STATE_WILL_SHOW)
+        if (g_input_panel_state == E_INPUT_PANEL_STATE_DID_SHOW ||
+            g_input_panel_state == E_INPUT_PANEL_STATE_WILL_SHOW)
           {
              g_old_text_input = old;
           }
@@ -1351,10 +1356,11 @@ _e_text_input_method_create_context(struct wl_client *client, E_Input_Method *in
 static void
 _e_text_input_cb_input_panel_show(struct wl_client *client, struct wl_resource *resource)
 {
-   LOGD("");
    E_Text_Input *text_input = wl_resource_get_user_data(resource);
    E_Input_Method *input_method = NULL;
 
+   LOGD("text_input : %p\n", text_input);
+
    if (!text_input)
      {
         WTI_WARNING(resource,
@@ -1422,6 +1428,8 @@ _e_text_input_cb_input_panel_hide(struct wl_client *client, struct wl_resource *
    E_Text_Input *text_input = wl_resource_get_user_data(resource);
    Eina_Bool hide_allowed = EINA_FALSE;
 
+   LOGD("text_input : %p\n", text_input);
+
    if (!g_text_input || (text_input && g_show_text_input == text_input))
      hide_allowed = EINA_TRUE;