How to define an icon for my app ?

Asked by Florent Delayen

Hi

I'm creating my own application, but I don't know how to define my icon in the launcher

With gnome pannel, I have an icon, but, with the launcher no.

I use the function gtk_window_set_icon() to define it.

But the result is just a grey icon with an "?"

My icon is named s_schedio, my application is named schedio, and the icon is placed in /usr/share/pixmaps/s_schedio.png

Question information

Language:
English Edit question
Status:
Solved
For:
Unity Edit question
Assignee:
No assignee Edit question
Solved by:
Florent Delayen
Solved:
Last query:
Last reply:
Revision history for this message
Florent Delayen (tnedel) said :
#1

Now that's ok

Excuse me for this, but it needs to restatrt the computer

Revision history for this message
Federico Tello Gentile (federicotg) said :
#2

I believe just loging out and in again will suffice.

Revision history for this message
Florent Delayen (tnedel) said :
#3

Ok, thanks ;)