summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-11-26 23:41:17 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-11-26 23:41:17 +0900
commit427eb2e3e8be5815b5cab5e49da0dda45e27938c (patch)
treed40575ea7791f03e62c1c79b4124d010eebe3b59 /src
parent8af76b608996b62e5cdfb5f4383606646b029a54 (diff)
test_icon.c: removed unnecessary box.
This fixes " _smart_need_recalculate_set() Object 0x803db8e8 is not stable during recalc loop" issue which was reported by kuuko. Special thanks to kuuko.
Diffstat (limited to 'src')
-rw-r--r--src/bin/test_icon.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/bin/test_icon.c b/src/bin/test_icon.c
index 5e3df43c2..b6e372ec7 100644
--- a/src/bin/test_icon.c
+++ b/src/bin/test_icon.c
@@ -54,7 +54,7 @@ bt_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_inf
54void 54void
55test_icon(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 55test_icon(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
56{ 56{
57 Evas_Object *win, *box, *content_box, *hbox, *tg, *bt; 57 Evas_Object *win, *box, *hbox, *tg, *bt;
58 win = elm_win_util_standard_add("icon test", "Icon Test"); 58 win = elm_win_util_standard_add("icon test", "Icon Test");
59 elm_win_autodel_set(win, EINA_TRUE); 59 elm_win_autodel_set(win, EINA_TRUE);
60 60
@@ -63,12 +63,6 @@ test_icon(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info
63 elm_win_resize_object_add(win, box); 63 elm_win_resize_object_add(win, box);
64 evas_object_show(box); 64 evas_object_show(box);
65 65
66 content_box = elm_box_add(win);
67 evas_object_size_hint_weight_set(content_box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
68 elm_win_resize_object_add(win, content_box);
69 elm_box_pack_end(box, content_box);
70 evas_object_show(content_box);
71
72 Evas_Object *ic = elm_icon_add(win); 66 Evas_Object *ic = elm_icon_add(win);
73 char buf[PATH_MAX]; 67 char buf[PATH_MAX];
74 snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get()); 68 snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
@@ -77,13 +71,12 @@ test_icon(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info
77 evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 71 evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
78 evas_object_size_hint_align_set(ic, EVAS_HINT_FILL, EVAS_HINT_FILL); 72 evas_object_size_hint_align_set(ic, EVAS_HINT_FILL, EVAS_HINT_FILL);
79 73
80 elm_box_pack_end(content_box, ic); 74 elm_box_pack_end(box, ic);
81 evas_object_show(ic); 75 evas_object_show(ic);
82 76
83 hbox = elm_box_add(win); 77 hbox = elm_box_add(win);
84 elm_box_horizontal_set(hbox, EINA_TRUE); 78 elm_box_horizontal_set(hbox, EINA_TRUE);
85 evas_object_size_hint_weight_set(content_box, EVAS_HINT_EXPAND, 79 evas_object_size_hint_weight_set(hbox, EVAS_HINT_EXPAND, 0.0);
86 EVAS_HINT_EXPAND);
87 elm_box_pack_end(box, hbox); 80 elm_box_pack_end(box, hbox);
88 evas_object_show(hbox); 81 evas_object_show(hbox);
89 82