aboutsummaryrefslogtreecommitdiffstats
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
parentelm scroller - fix infinite recursion in scroller adjust (diff)
downloadelementary-427eb2e3e8be5815b5cab5e49da0dda45e27938c.tar.gz
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.
-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
void
test_icon(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
- Evas_Object *win, *box, *content_box, *hbox, *tg, *bt;
+ Evas_Object *win, *box, *hbox, *tg, *bt;
win = elm_win_util_standard_add("icon test", "Icon Test");
elm_win_autodel_set(win, EINA_TRUE);
@@ -63,12 +63,6 @@ test_icon(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info
elm_win_resize_object_add(win, box);
evas_object_show(box);
- content_box = elm_box_add(win);
- evas_object_size_hint_weight_set(content_box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, content_box);
- elm_box_pack_end(box, content_box);
- evas_object_show(content_box);
-
Evas_Object *ic = elm_icon_add(win);
char buf[PATH_MAX];
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
evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ic, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_box_pack_end(content_box, ic);
+ elm_box_pack_end(box, ic);
evas_object_show(ic);
hbox = elm_box_add(win);
elm_box_horizontal_set(hbox, EINA_TRUE);
- evas_object_size_hint_weight_set(content_box, EVAS_HINT_EXPAND,
- EVAS_HINT_EXPAND);
+ evas_object_size_hint_weight_set(hbox, EVAS_HINT_EXPAND, 0.0);
elm_box_pack_end(box, hbox);
evas_object_show(hbox);