widget: support win.
This commit is contained in:
parent
ae6dab3892
commit
6978ae3ac8
22
src/widget.c
22
src/widget.c
|
@ -1339,6 +1339,27 @@ _widget_tooltip_create(const char *style)
|
|||
return box;
|
||||
}
|
||||
|
||||
static Evas_Object *
|
||||
_widget_win_create(const char *orig_style)
|
||||
{
|
||||
Evas_Object *o, *table;
|
||||
const char *group = NULL, *style = NULL;
|
||||
char buf[PATH_MAX] = {0, };
|
||||
|
||||
strncpy(buf, orig_style, sizeof(buf));
|
||||
group = strtok(buf, "/");
|
||||
style = strtok(NULL, "/");
|
||||
|
||||
o = elm_layout_add(win);
|
||||
elm_layout_theme_set(o, "win", group, style);
|
||||
evas_object_show(o);
|
||||
|
||||
table = _elm_min_set(o, WIDGET_DEFAULT_WIDTH, WIDGET_DEFAULT_HEIGHT);
|
||||
ALIGN(table, 0.0, 0.0);
|
||||
|
||||
return table;
|
||||
}
|
||||
|
||||
void
|
||||
widget_resize(Evas_Object *o)
|
||||
{
|
||||
|
@ -1416,6 +1437,7 @@ widget_create(Widget_Type widget, const char *orig_style)
|
|||
ADD_WIDGET(thumb, ETV_ID_THUMB, style);
|
||||
ADD_WIDGET2(toolbar, ETV_ID_TOOLBAR, orig_style, style);
|
||||
ADD_WIDGET(tooltip, ETV_ID_TOOLTIP, style);
|
||||
ADD_WIDGET(win, ETV_ID_WIN, orig_style);
|
||||
else
|
||||
o = _widget_not_implemented_create(widget);
|
||||
elm_object_theme_set(o, th);
|
||||
|
|
Loading…
Reference in New Issue