widget: refactoring. place internal function in the right place.
This commit is contained in:
parent
63bbb5a7e0
commit
0aa4ae1246
36
src/widget.c
36
src/widget.c
|
@ -286,24 +286,6 @@ _widget_clock_create(const char* style)
|
|||
return o;
|
||||
}
|
||||
|
||||
static Evas_Object *
|
||||
_widget_entry_create(const char* style)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
|
||||
Evas_Object *o;
|
||||
o = elm_entry_add(win);
|
||||
EXPAND(o); FILL(o);
|
||||
elm_object_style_set(o, style);
|
||||
snprintf(buf, sizeof(buf),
|
||||
"This is an entry widget in this window that<br/>"
|
||||
"uses markup <b>like this</> for styling and<br/>");
|
||||
elm_object_text_set(o, buf);
|
||||
evas_object_show(o);
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
static Evas_Object *
|
||||
_widget_check_create(const char *style)
|
||||
{
|
||||
|
@ -343,6 +325,24 @@ _widget_colorselector_create(const char *style)
|
|||
return o;
|
||||
}
|
||||
|
||||
static Evas_Object *
|
||||
_widget_entry_create(const char* style)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
|
||||
Evas_Object *o;
|
||||
o = elm_entry_add(win);
|
||||
EXPAND(o); FILL(o);
|
||||
elm_object_style_set(o, style);
|
||||
snprintf(buf, sizeof(buf),
|
||||
"This is an entry widget in this window that<br/>"
|
||||
"uses markup <b>like this</> for styling and<br/>");
|
||||
elm_object_text_set(o, buf);
|
||||
evas_object_show(o);
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
Evas_Object *
|
||||
_widget_ews_create(const char *orig_style)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue