From: Goun Lee Date: Mon, 19 Sep 2011 07:03:55 +0000 (+0900) Subject: [elm_multibuttonentry]Bug fix:IME doesn't show up when guidetext is clicked in calend... X-Git-Tag: REL_F_I9200_20110927_1~7^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9ca93645808c21ed3d55a7bc8bc23654d7325fb;p=framework%2Fuifw%2Felementary.git [elm_multibuttonentry]Bug fix:IME doesn't show up when guidetext is clicked in calendar app & prevent issue --- diff --git a/src/lib/elm_multibuttonentry.c b/src/lib/elm_multibuttonentry.c index 0c1b989..ebc2903 100644 --- a/src/lib/elm_multibuttonentry.c +++ b/src/lib/elm_multibuttonentry.c @@ -168,7 +168,7 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj) ecore_imf_context_input_panel_show(imf_context); evas_object_focus_set(obj, EINA_TRUE); } - else if ((imf_context) && (!wd->current) || (!eina_list_count(wd->items))) + else if ((imf_context) && ((!wd->current) || (!eina_list_count(wd->items)))) { _view_update(obj); ecore_imf_context_input_panel_show(imf_context); @@ -1292,12 +1292,9 @@ elm_multibuttonentry_add(Evas_Object *parent) Evas_Object *obj; Evas *e; Widget_Data *wd; - if (!parent) return NULL; - wd = ELM_NEW(Widget_Data); - e = evas_object_evas_get(parent); - if (!e) return NULL; - obj = elm_widget_add(e); + ELM_WIDGET_STANDARD_SETUP(wd, Widget_Data, parent, e, obj, NULL); + ELM_SET_WIDTYPE(widtype, "multibuttonentry"); elm_widget_type_set(obj, "multibuttonentry"); elm_widget_sub_object_add(parent, obj);