[Elementary] Make it possible to lookup icons from Freedesktop in Elm_Icon.
authorLeandro Pereira <leandro@profusion.mobi>
Thu, 14 Oct 2010 22:21:43 +0000 (22:21 +0000)
committerLeandro Pereira <leandro@profusion.mobi>
Thu, 14 Oct 2010 22:21:43 +0000 (22:21 +0000)
commitf932419989ce413ccc6428980fe348540c5fe962
tree8401bb2b5543ef1b015e310a270b6bdd11a2b71d
parent6fce446edbd81840782dbf3f6cbcc4352e829f5b
[Elementary] Make it possible to lookup icons from Freedesktop in Elm_Icon.

With these changes, Elm_Icon will also look up icons from the chosen
Freedesktop (fd.o) icon theme.  Since this might incur in some performance
penalties if you're sure only theme icons will be used, icon lookup order
may be specified with the elm_icon_order_lookup_set() function call; using
the lookup parameter as follows:

 - ELM_ICON_ORDER_FDO_THEME (default) will look up first fd.o, then the theme;
 - ELM_ICON_ORDER_THEME_FDO will look up first the theme, then fd.o;
 - ELM_ICON_ORDER_FDO will look up only fd.o; and
 - ELM_ICON_ORDER_THEME (old behaviour) will lookup only from the theme.

Elm_Icon will also try to use a different resolution image if the widget is
resized and the image source is fd.o.

fd.o support requires Efreet, but it should work nicely (falling back to the
old behaviour) if it isn't available.

SVN revision: 53433
src/bin/test_toolbar.c
src/lib/Elementary.h.in
src/lib/elm_icon.c
src/lib/elm_toolbar.c