From: Bluezery <ohpowel@gmail.com>

Subject: [E-devel]  [Patch][elm_map] Mouse wheel bug fix

There is mouse wheel bug. Actually I have made it in previous patch :p

When using mouse wheel, tile size was changed between 0.5 ~ 2.0 before
zoom level is changed. But actually it should be changed between
1.0 ~ 2.0. I have fixed it. If tile size is below 1.0,  it does zoom-out. 
And if tile size is above 2.0, it does zoom-in.



SVN revision: 66458
This commit is contained in:
Bluezery 2011-12-22 07:48:51 +00:00 committed by Carsten Haitzler
parent 92b36f67a4
commit b5eba2f735
1 changed files with 3 additions and 3 deletions

View 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);