application symbol on unix Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

application symbol on unix

Post by MoonKid »

I buiild a application on windows and use an rc-file to inbuiild a symbol-file (ico) to the binary.

How can I do this on a unixoid system (ubuntu/linux)? Of course there is no compiler for a rc-file.

I am using Code::Blocks with g++ on ubuntu.
DavidHart
Site Admin
Site Admin
Posts: 4254
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart »

Hi,

Use an xpm.

Code: Select all

#include "yourappname.xpm"

MyFrame::MyFrame(...)
{
...
SetIcon( wxICON( yourappname ) );
...
}
The only catch is to make sure you put the correct name in wxICON. It needs to be the internal name of the xpm, not its filename.

Regards,

David
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

Post by MoonKid »

DavidHart wrote:Use an xpm.
Ok, I found no application to convert my SVG-File to a xpm.

Does XPM support different resolutions like ICO on windows? Can Gnome, KDE, etc interprete the inbuild xpm correct to display the application icon in their file managers?
FlyingIsFun1217
Super wx Problem Solver
Super wx Problem Solver
Posts: 497
Joined: Mon Nov 06, 2006 9:58 pm

Post by FlyingIsFun1217 »

MoonKid wrote: Ok, I found no application to convert my SVG-File to a xpm.
Gimp

About XPM's

FlyingIsFun1217 :)
Post Reply