evas_object_show(bx);
hv = elm_hover_add(win);
- elm_hover_style_set(hv, "popout");
+ elm_object_style_set(hv, "popout");
bt = elm_button_add(win);
elm_button_label_set(bt, "Button");
evas_object_show(bg);
inwin = elm_win_inwin_add(win);
- elm_win_inwin_style_set(inwin, "minimal_vertical");
+ elm_object_style_set(inwin, "minimal_vertical");
evas_object_show(inwin);
lb = elm_label_add(win);
{
sd->subobjs = eina_list_remove(sd->subobjs, obj);
}
+ if (sd->style) eina_stringshare_del(sd->style);
evas_object_smart_callback_call(sd->obj, "sub-object-del", obj);
}
const char *old;
API_ENTRY return;
old = sd->style;
- eina_stringshare_del(sd->style);
sd->style = eina_stringshare_add(style);
- if (old != sd->style)
- elm_widget_theme(obj);
+ if (old) eina_stringshare_del(old);
+ if (old != sd->style) elm_widget_theme(obj);
}
EAPI const char *
elm_widget_style_get(const Evas_Object *obj)
{
- API_ENTRY return "default";
+ API_ENTRY return "";
if (sd->style) return sd->style;
return "default";
}