summaryrefslogtreecommitdiff
path: root/src/examples/hoversel_example_01.c
diff options
context:
space:
mode:
authorJonas M. Gastal <jgastal@profusion.mobi>2012-03-14 17:20:15 +0000
committerJonas M. Gastal <jgastal@profusion.mobi>2012-03-14 17:20:15 +0000
commita7e1e59d5998f79e9c7f4941558072c259198dd1 (patch)
tree4077731103c8761750457e1ed8d7b798dd3b3ad6 /src/examples/hoversel_example_01.c
parentfdb13c7cb8818a687fd2672bd4c0f16eea7a9161 (diff)
downloadelementary-a7e1e59d5998f79e9c7f4941558072c259198dd1.tar.gz
Hoversel example and doc fix.
Patch by: João Paulo Fernandes Ventura SVN revision: 69342
Diffstat (limited to 'src/examples/hoversel_example_01.c')
-rw-r--r--src/examples/hoversel_example_01.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/examples/hoversel_example_01.c b/src/examples/hoversel_example_01.c
index cf7046138..ed76d29b2 100644
--- a/src/examples/hoversel_example_01.c
+++ b/src/examples/hoversel_example_01.c
@@ -22,8 +22,11 @@ elm_main(int argc, char **argv)
elm_win_title_set(win, "Hoversel");
elm_win_autodel_set(win, EINA_TRUE);
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
+ evas_object_resize(win, 200, 300);
+ evas_object_show(win);
bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
@@ -49,8 +52,6 @@ elm_main(int argc, char **argv)
evas_object_move(hoversel, 10, 10);
evas_object_show(hoversel);
- evas_object_resize(win, 200, 300);
- evas_object_show(win);
elm_run();