oops - unpatch - wrong attribution!
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 22 Dec 2011 07:55:35 +0000 (07:55 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 22 Dec 2011 07:55:35 +0000 (07:55 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@66460 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elc_multibuttonentry.c

index 410801c..f1ee8ba 100644 (file)
@@ -772,13 +772,13 @@ _add_button_item(Evas_Object *obj, const char *str, Multibuttonentry_Pos pos, co
         if (!(item_filter->callback_func(obj, str, data, item_filter->data)))
           return NULL;
      }
+   //entry is cleared when text is made to button
+   elm_entry_entry_set(wd->entry, "");
+
    // add button
    btn = edje_object_add(evas_object_evas_get(obj));
    str_utf8 = elm_entry_markup_to_utf8(str);
 
-   //entry is cleared when text is made to button
-   elm_entry_entry_set(wd->entry, "");
-
    _elm_theme_object_set(obj, btn, "multibuttonentry", "btn", elm_widget_style_get(obj));
    edje_object_part_text_set(btn, "elm.btn.text", str_utf8);
    edje_object_part_geometry_get(btn, "elm.btn.text", NULL, NULL, &width, &height);