On Wed, Aug 3, 2011 at 6:35 PM, Jasper St. Pierre <jstpie...@mecheye.net> wrote: > On Wed, Aug 3, 2011 at 4:27 AM, Tim Cuthbertson <t...@gfxmonk.net> wrote: >> I'm still trying to get custom icons to appear in my extension's panel >> indicator. I've done the following: >> >> - added my icon to >> $XDG_DATA_DIRS/hicolor/48x48/actions/window-tile-horizontal.png >> - created an StIcon, and added it to my indicator's panel actor >> >> If I use icon.set_name("go-down"), the down arrow appears in my >> indicator. So it seems I'm hooking up the icon / layout correctly. >> However, if I use icon.set_name("window-tile-horizontal"), no icon >> appears. >> I am sure that the icon is in the right place, as: >> >> $ notify-send --icon=window-tile-horizontal "test" >> >> works and correctly shows my custom icon with the notification. Is >> there some difference between how notify-send and StIcon resolve their >> icon images? > > StIcon defaults to an icon type of SYMBOLIC, so you need to stick an > SVG in the correct place to have a proper symbolic icon, as > recommended.
Ahh, thank you. Can you point me to any further info? I haven't found the xdg icon spec terribly enlightening. It mentions a "-symbolic" suffix, but so far I've found no luck displaying a file that I've placed in $XDG_DATA_DIRS/hicolor/scalable/status/window-tile-horizontal-symbolic.svg, regardless of whether I include the "-symbolic" part in the icon name. Thanks, - Tim. _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-shell-list