remove need_commit. It makes side effect
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 5 Apr 2011 10:42:24 +0000 (19:42 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 5 Apr 2011 10:42:24 +0000 (19:42 +0900)
src/lib/edje_entry.c

index 2555c9d..7262580 100644 (file)
@@ -63,7 +63,6 @@ struct _Entry
    Eina_Bool autocapital : 1;
    Eina_Bool uppercase : 1;
    Eina_Bool autoperiod : 1;
-   Eina_Bool need_commit : 1;
    int select_dragging_state;
    double space_key_time;
 
@@ -2552,7 +2551,6 @@ _edje_entry_real_part_init(Edje_Real_Part *rp)
    rp->entry_data = en;
    en->rp = rp;
    en->autoperiod = EINA_TRUE;
-   en->need_commit = EINA_TRUE;
 
 #ifdef HAVE_ECORE_IMF
    en->input_panel_enable = _edje_input_panel_enable;
@@ -2840,7 +2838,6 @@ _edje_entry_text_markup_set(Edje_Real_Part *rp, const char *text)
 #ifdef HAVE_ECORE_IMF
    if ((en->have_preedit) && (en->imf_context))
      {
-        en->need_commit = EINA_FALSE;
         ecore_imf_context_reset(en->imf_context);
      }
 #endif
@@ -3632,12 +3629,6 @@ _edje_entry_imf_event_commit_cb(void *data, int type __UNUSED__, void *event)
           }
      }
 
-   if (!en->need_commit)
-     {
-        en->need_commit = EINA_TRUE;
-        return ECORE_CALLBACK_PASS_ON;
-     }
-
    tc = evas_object_textblock_cursor_new(rp->object);
 
    /* calculate the cursor position to insert commit string */