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. > _______________________________________________ > gnome-shell-list mailing list > gnome-shell-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-shell-list > -- Jasper _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-shell-list