which is the file used by xpad for tray icon

Asked by dstoian on 2012-04-05

hi,

i like xpad a lot for its simplicity and effectiveness.

my systray icons are all monochrome... i was wondering where does xpad look for its icon in the systray? i'd like to customize it to match the monochrome theme.

i hope it's not the same icon/file which is used for the taskbar.

i have gnome with openbox, and the panel is tint2 (on debian/crunchbang).

thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Xpad Edit question
Assignee:
No assignee Edit question
Solved by:
Siergiej Riaguzow
Solved:
2012-04-07
Last query:
2012-04-07
Last reply:
2012-04-07
dstoian (dstoian) said : #1

hey, i thought i'd get an answer... bump!

Siergiej Riaguzow (riaguzov) said : #2

Hi,

I will answer you tomorrow.

Best Siergiej Riaguzow (riaguzov) said : #3

Mmkay, I do not have any Linux right now, but this is how you could find your icon:

First in the tarball with the sources there is an icon images/hicolor/scalable/apps/xpad.svg. This is vector graphics, best edited with Corel Draw, Inkscape or whatever editor you've got. Why this is what's in taskbar? First, because there is nothing else. Second, because of this code in the generated Makefile:

=== Cut ===
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
=== Cut ===

and this code in xpad-tray.c:

=== Cut ===
docklet = gtk_status_icon_new_from_icon_name (PACKAGE);
=== Cut ===

where PACKAGE is:

./Makefile:PACKAGE = xpad

So, after a './configure && make install' on my Hackintosh the 'make install' step did the following:

===
Cit ===
test -z "/usr/local/share/icons" || .././install-sh -c -d "/usr/local/share/icons"
.././install-sh -c -d '/usr/local/share/icons/hicolor/scalable/apps'
=== Cit ===

Seeing this you would probably look for /usr/share/icons/hicolor (or /usr/local/share/icons/hicolor if you've used 'make install' instead of some package for your Linux distribution) for the xpad.svg and then use Corel Draw, Adobe Illustrator, Inkscape or whatever else to make the icon monochrome.

Hope this helps.

Siergiej Riaguzow (riaguzov) said : #4

> i hope it's not the same icon/file which is used for the taskbar.
Looks like it is the same one.

dstoian (dstoian) said : #5

Sergei,

Thanks for the response.

dstoian (dstoian) said : #6

Thanks Sergei Riaguzov, that solved my question.

BTW, for version 4.2 you have a new option, where you can set a different icon for the application and the tray icon.
You can find the details of this new option here.

https://launchpad.net/xpad/+milestone/4.2

dstoian (dstoian) said : #8

Thanks, Arthur,

That's very nice, to be able to set the tray icon.