[Sugar-devel] icon search path

Walter Bender walter.bender at gmail.com
Sat Apr 2 14:10:13 EDT 2011


On Sat, Apr 2, 2011 at 2:07 PM, Sascha Silbe <silbe at sugarlabs.org> wrote:
> Excerpts from Walter Bender's message of Sat Apr 02 18:24:05 +0200 2011:
>
>> Is there a way to add to the path used to search for icons by name?
>
> From sugar.activity.main.main():
>
>    gtk.icon_theme_get_default().append_search_path(bundle.get_icons_path())
>
> So something like:
>
>    icon_theme = gtk.icon_theme_get_default()
>    for plugin_path in plugin_paths:
>        icon_theme.append_search_path(os.path.join(plugin_path, 'icons'))
>
> should do the trick.
>
> Sascha
>
> --
> http://sascha.silbe.org/
> http://www.infra-silbe.de/
>

Great. I'll try it (and if it works, add it to the wiki).

thanks.

-walter
-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list