Re: Can't resolve custom icons in the panel
- From: "Jasper St. Pierre" <jstpierre mecheye net>
- To: Tim Cuthbertson <tim gfxmonk net>
- Cc: gnome-shell-list <gnome-shell-list gnome org>
- Subject: Re: Can't resolve custom icons in the panel
- Date: Wed, 3 Aug 2011 04:35:43 -0400
On Wed, Aug 3, 2011 at 4:27 AM, Tim Cuthbertson <tim 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]