added label, button, panes.

This commit is contained in:
Daniel Juyung Seo 2012-08-13 19:44:17 +09:00 committed by Daniel Juyung Seo
parent f7eeec7a74
commit 9f2aa908d8
1 changed files with 19 additions and 1 deletions

20
gui.c
View File

@ -3,7 +3,8 @@
void
gui_create(void)
{
Evas_Object *win, *box, *o;
Evas_Object *win, *o;
Evas_Object *box, *lbl, *btn, *panes;
win = elm_win_util_standard_add("elm-theme-viewer", "Elm Theme Viewer");
evas_object_resize(win, 300, 400);
@ -14,5 +15,22 @@ gui_create(void)
elm_win_resize_object_add(win, o);
evas_object_show(o);
lbl = o = elm_label_add(win);
elm_object_text_set(o, "/usr/local/share/elementary/themes/default.edj");
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
elm_box_pack_end(box, o);
evas_object_show(o);
btn = o = elm_button_add(win);
elm_object_text_set(o, "Select Theme");
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
elm_box_pack_end(box, o);
evas_object_show(o);
panes = o = elm_panes_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_box_pack_end(box, o);
evas_object_show(o);
return;
}