forked from enlightenment/efl
elm_test: Scale down icon by 8x
This makes the icon test actually work. Otherwise the icon data is too big and basically seems ignored by the compositor or X. Note: In E (X11) it seems that the window icon remains unchanged? xprop shows the proper data, though. Ping @zmike.
This commit is contained in:
parent
f4ed430ddc
commit
66a355d565
|
@ -109,6 +109,7 @@ test_icon(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info
|
||||||
|
|
||||||
/* Set window icon too */
|
/* Set window icon too */
|
||||||
ic = evas_object_image_filled_add(evas_object_evas_get(win));
|
ic = evas_object_image_filled_add(evas_object_evas_get(win));
|
||||||
|
evas_object_image_load_scale_down_set(ic, 8);
|
||||||
evas_object_image_file_set(ic, buf, NULL);
|
evas_object_image_file_set(ic, buf, NULL);
|
||||||
elm_win_icon_object_set(win, ic);
|
elm_win_icon_object_set(win, ic);
|
||||||
evas_object_show(ic);
|
evas_object_show(ic);
|
||||||
|
|
Loading…
Reference in New Issue