_del_pre_hook(Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
+
evas_object_event_callback_del(wd->entry, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints);
elm_anchorblock_hover_end(obj);
_del_hook(Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
+
if (wd->hover_style) eina_stringshare_del(wd->hover_style);
free(wd);
}
_hover_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
Widget_Data *wd = elm_widget_data_get(data);
+
wd->hover = NULL;
}
evas_object_resize(wd->pop, info->w, info->h);
wd->hover = elm_hover_add(obj);
- if (wd->hover_style) elm_hover_style_set(wd->hover, wd->hover_style);
+ if (wd->hover_style)
+ elm_object_style_set(wd->hover, wd->hover_style);
hover_parent = wd->hover_parent;
if (!hover_parent) hover_parent = obj;
elm_hover_parent_set(wd->hover, hover_parent);
evas_object_resize(wd->pop, info->w, info->h);
wd->hover = elm_hover_add(obj);
- if (wd->hover_style) elm_hover_style_set(wd->hover, wd->hover_style);
+ if (wd->hover_style)
+ elm_object_style_set(wd->hover, wd->hover_style);
hover_parent = wd->hover_parent;
if (!hover_parent) hover_parent = obj;
elm_hover_parent_set(wd->hover, hover_parent);
if (!wd) return;
snprintf(buf, sizeof(buf), "hoversel_vertical/%s", elm_widget_style_get(obj));
- elm_button_style_set(wd->btn, buf);
+ elm_object_style_set(wd->btn, buf);
}
static void
EINA_LIST_FOREACH(wd->items, l, it)
{
bt = elm_button_add(wd->hover);
- elm_button_style_set(bt, buf);
+ elm_object_style_set(bt, buf);
elm_button_label_set(bt, it->label);
if (it->icon_file)
{
elm_widget_disable_hook_set(obj, _disable_hook);
wd->btn = elm_button_add(parent);
- elm_button_style_set(wd->btn, "hoversel_vertical");
+ elm_object_style_set(wd->btn, "hoversel_vertical");
elm_widget_resize_object_set(obj, wd->btn);
evas_object_event_callback_add(wd->btn, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints, obj);