allow icon window to resize for testing.

SVN revision: 46676
This commit is contained in:
Carsten Haitzler 2010-03-01 02:20:41 +00:00
parent 185bec1265
commit 0bad44f5db
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ test_icon(void *data, Evas_Object *obj, void *event_info)
snprintf(buf, sizeof(buf), "%s/images/logo.png", PACKAGE_DATA_DIR);
elm_icon_file_set(ic, buf, NULL);
elm_icon_scale_set(ic, 0, 0);
elm_icon_no_scale_set(ic, 1);
evas_object_size_hint_weight_set(ic, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_fill_set(ic, 0.5, 0.5);
elm_win_resize_object_add(win, ic);
evas_object_show(ic);