[multibuttonentry]merged with opensource (r69583)
authorGoun Lee <gouni.lee@samsung.com>
Fri, 23 Mar 2012 08:16:01 +0000 (17:16 +0900)
committerGoun Lee <gouni.lee@samsung.com>
Fri, 23 Mar 2012 08:40:45 +0000 (17:40 +0900)
Change-Id: Iacb6749138e704930d7ecdbd4736edfd528976f3

src/lib/elc_multibuttonentry.c

index ee1f364..de95033 100644 (file)
@@ -343,6 +343,9 @@ _set_vis_guidetext(Evas_Object *obj)
    elm_box_unpack(wd->box, wd->entry);
    if (wd->view_state == MULTIBUTTONENTRY_VIEW_SHRINK) return;
 
+   if(!wd->focused)
+     elm_object_focus_set(wd->entry, EINA_FALSE);
+
    if (wd && (!eina_list_count(wd->items)) && wd->guidetext
        && (!elm_widget_focus_get(obj)) && (!wd->focused) && (!wd->n_str))
      {
@@ -793,7 +796,8 @@ _resize_button(Evas_Object *btn, Evas_Coord *realw, Evas_Coord *vieww)
    edje_object_part_geometry_get(btn, "elm.base", NULL, NULL, NULL, &h_btn);
    edje_object_part_geometry_get(btn, "elm.btn.text", NULL, NULL, &w_text, NULL);
    edje_object_part_geometry_get(btn, "right.padding", NULL, NULL, &padding_outer, NULL);
-   w_btn = w_text + 2*padding_outer;
+   w_btn = w_text + (2 * padding_outer);
+
    rw = w_btn;
 
    if (button_max_width < w_btn)