Clean hoversel_add

SVN revision: 53621
This commit is contained in:
Tiago Rezende Campos Falcao 2010-10-19 14:17:11 +00:00
parent 97cba4930e
commit 0e436c7431
1 changed files with 3 additions and 7 deletions

View File

@ -257,7 +257,6 @@ elm_hoversel_add(Evas_Object *parent)
Evas_Object *obj;
Evas *e;
Widget_Data *wd;
char buf[4096];
wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
@ -276,17 +275,14 @@ elm_hoversel_add(Evas_Object *parent)
wd->btn = elm_button_add(parent);
wd->expanded = EINA_FALSE;
if (wd->horizontal)
snprintf(buf, sizeof(buf), "hoversel_horizontal/%s", elm_widget_style_get(obj));
else
snprintf(buf, sizeof(buf), "hoversel_vertical/%s", elm_widget_style_get(obj));
elm_object_style_set(wd->btn, buf);
elm_widget_resize_object_set(obj, wd->btn);
evas_object_event_callback_add(wd->btn, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints, obj);
evas_object_smart_callback_add(wd->btn, "clicked", _button_clicked, obj);
elm_widget_sub_object_add(obj, wd->btn);
elm_hoversel_hover_parent_set(obj, parent);
_sizing_eval(obj);
_theme_hook(obj);
return obj;
}