summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/bin/test_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/elementary/src/bin/test_map.c')
-rw-r--r--legacy/elementary/src/bin/test_map.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/legacy/elementary/src/bin/test_map.c b/legacy/elementary/src/bin/test_map.c
index a341cf9670..28413c1091 100644
--- a/legacy/elementary/src/bin/test_map.c
+++ b/legacy/elementary/src/bin/test_map.c
@@ -711,7 +711,7 @@ _map_mouse_up(void *data __UNUSED__, Evas *evas __UNUSED__, Evas_Object *obj __U
711void 711void
712test_map(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 712test_map(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
713{ 713{
714 Evas_Object *win, *bg, *map; 714 Evas_Object *win, *bg, *map, *vbox, *r;
715 int idx = 0; 715 int idx = 0;
716 716
717 win = elm_win_add(NULL, "map", ELM_WIN_BASIC); 717 win = elm_win_add(NULL, "map", ELM_WIN_BASIC);
@@ -723,6 +723,18 @@ test_map(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __
723 elm_win_resize_object_add(win, bg); 723 elm_win_resize_object_add(win, bg);
724 evas_object_show(bg); 724 evas_object_show(bg);
725 725
726 vbox = elm_box_add(win);
727 elm_win_resize_object_add(win, vbox);
728 evas_object_size_hint_weight_set(vbox, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
729 evas_object_show(vbox);
730
731 r = evas_object_rectangle_add(evas_object_evas_get(win));
732 evas_object_color_set(r, 20, 40, 60, 255);
733 evas_object_size_hint_min_set(r, 200, 200);
734 evas_object_show(r);
735 evas_object_size_hint_fill_set(r, EVAS_HINT_FILL, EVAS_HINT_FILL);
736 elm_box_pack_end(vbox, r);
737
726 map = elm_map_add(win); 738 map = elm_map_add(win);
727 if (map) 739 if (map)
728 { 740 {
@@ -736,7 +748,9 @@ test_map(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __
736 printf("]\n"); 748 printf("]\n");
737 749
738 evas_object_size_hint_weight_set(map, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 750 evas_object_size_hint_weight_set(map, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
739 elm_win_resize_object_add(win, map); 751 evas_object_size_hint_fill_set(map, EVAS_HINT_FILL, EVAS_HINT_FILL);
752 elm_box_pack_end(vbox, map);
753// elm_win_resize_object_add(win, map);
740 evas_object_data_set(map, "window", win); 754 evas_object_data_set(map, "window", win);
741 755
742 // 756 //