summaryrefslogtreecommitdiff
path: root/src/examples/gengrid_example.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-06-26 15:34:38 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-06-26 15:34:38 +0900
commit38aebc64b8793ccba60ebd6f8a18365ab9d4a2c7 (patch)
treebd135703275efd90b8bfb397e94c9a3c1624dd5e /src/examples/gengrid_example.c
parent1f7d2efe339ccd742ccfad98da3667be4d2edece (diff)
examples: refactoring. use elm_win_util_standard_add() for normal cases. season 2.
Diffstat (limited to 'src/examples/gengrid_example.c')
-rw-r--r--src/examples/gengrid_example.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/examples/gengrid_example.c b/src/examples/gengrid_example.c
index ab8d64ee9..6ec2e5969 100644
--- a/src/examples/gengrid_example.c
+++ b/src/examples/gengrid_example.c
@@ -415,8 +415,7 @@ EAPI_MAIN int
415elm_main(int argc, 415elm_main(int argc,
416 char **argv) 416 char **argv)
417{ 417{
418 Evas_Object *win, *bg, *grid, *bx, *hbx_1, *hbx_2, *hbx_3, *bt, *ck, *sl, 418 Evas_Object *win, *grid, *bx, *hbx_1, *hbx_2, *hbx_3, *bt, *ck, *sl, *sp;
419 *sp;
420 Eina_Bool bounce; 419 Eina_Bool bounce;
421 double h, v; 420 double h, v;
422 421
@@ -425,15 +424,9 @@ elm_main(int argc,
425 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 424 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
426 elm_app_info_set(elm_main, "elementary", "images"); 425 elm_app_info_set(elm_main, "elementary", "images");
427 426
428 win = elm_win_add(NULL, "gengrid", ELM_WIN_BASIC); 427 win = elm_win_util_standard_add("gengrid", "Generic Grid Example");
429 elm_win_title_set(win, "Generic Grid Example");
430 elm_win_autodel_set(win, EINA_TRUE); 428 elm_win_autodel_set(win, EINA_TRUE);
431 429
432 bg = elm_bg_add(win);
433 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
434 elm_win_resize_object_add(win, bg);
435 evas_object_show(bg);
436
437 bx = elm_box_add(win); 430 bx = elm_box_add(win);
438 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 431 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
439 elm_win_resize_object_add(win, bx); 432 elm_win_resize_object_add(win, bx);