How can I have an icon in the gnome-menu ?

View: New views
7 Messages — Rating Filter:   Alert me  

How can I have an icon in the gnome-menu ?

by Lionel Dricot (aka Ploum) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I've packaged my first complete Gnome application but I experience a very strange behaviour with icons in the menu. As it was done more by try/error than by real understanding, I guess I missed something.

My application is called "gtg" and I've put a gtg.desktop in /usr/share/applications with the following line in it :

Icon=gtg

I've also put a gtg.png in /usr/share/icons/hicolor/16x16 22x22 24x24 and a .svg in scalable.


So, does it work ?  Maybe.

On one computer, it worked as soon as the application was installed
On another computer, it required to killall gnome-panel because the icon never showed up.
On the third computer, there's no icon at all.

All 3 computers are Ubuntu 8.10 and I'm completely lost trying to find out what can be the cause of this problem. Also, I don't understand what the /usr/share/pixmaps folder is.


Is there a good ressource about that ? It still seems like black magic to me and I hate that feeling.

Thanks,

Lionel

PS : packages are https://edge.launchpad.net/~gtg/+archive/ppa and tar.gz for other distributions is here : https://edge.launchpad.net/gtg/+download

_______________________________________________
gnome-love mailing list
gnome-love@...
http://mail.gnome.org/mailman/listinfo/gnome-love

Re: How can I have an icon in the gnome-menu ?

by Lionel Dricot (aka Ploum) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I discovered that removing the file /usr/share/icons/hicolor/icon-theme.cache  solved that problem.

Maybe the problem is more complex than what I thought so this mailing list might not be the best place. Where do you think I can discuss such thing ?

On Mon, Mar 2, 2009 at 10:29 AM, Lionel Dricot <zeploum@...> wrote:
Hello,

I've packaged my first complete Gnome application but I experience a very strange behaviour with icons in the menu. As it was done more by try/error than by real understanding, I guess I missed something.

My application is called "gtg" and I've put a gtg.desktop in /usr/share/applications with the following line in it :

Icon=gtg

I've also put a gtg.png in /usr/share/icons/hicolor/16x16 22x22 24x24 and a .svg in scalable.


So, does it work ?  Maybe.

On one computer, it worked as soon as the application was installed
On another computer, it required to killall gnome-panel because the icon never showed up.
On the third computer, there's no icon at all.

All 3 computers are Ubuntu 8.10 and I'm completely lost trying to find out what can be the cause of this problem. Also, I don't understand what the /usr/share/pixmaps folder is.


Is there a good ressource about that ? It still seems like black magic to me and I hate that feeling.

Thanks,

Lionel

PS : packages are https://edge.launchpad.net/~gtg/+archive/ppa and tar.gz for other distributions is here : https://edge.launchpad.net/gtg/+download


_______________________________________________
gnome-love mailing list
gnome-love@...
http://mail.gnome.org/mailman/listinfo/gnome-love

Re: How can I have an icon in the gnome-menu ?

by Andre Klapper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Montag, den 02.03.2009, 10:40 +0100 schrieb Lionel Dricot:
> I discovered that removing the
> file /usr/share/icons/hicolor/icon-theme.cache  solved that problem.
>
> Maybe the problem is more complex than what I thought so this mailing
> list might not be the best place. Where do you think I can discuss
> such thing ?

http://library.gnome.org/devel/gtk/unstable/gtk-update-icon-cache.html
is my guess.

andre
--
 mailto:ak-47@... | failed
 http://www.iomc.de/  | http://blogs.gnome.org/aklapper

_______________________________________________
gnome-love mailing list
gnome-love@...
http://mail.gnome.org/mailman/listinfo/gnome-love

Re: How can I have an icon in the gnome-menu ?

by Lionel Dricot (aka Ploum) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

But in the case of a python program, there's no make file or stuffs like that.  This page is indeed helpful :
http://live.gnome.org/GnomeGoals/AppIcon
...
if you write in C/C++

:-(

On Mon, Mar 2, 2009 at 10:56 AM, Andre Klapper <ak-47@...> wrote:
Am Montag, den 02.03.2009, 10:40 +0100 schrieb Lionel Dricot:
> I discovered that removing the
> file /usr/share/icons/hicolor/icon-theme.cache  solved that problem.
>
> Maybe the problem is more complex than what I thought so this mailing
> list might not be the best place. Where do you think I can discuss
> such thing ?

http://library.gnome.org/devel/gtk/unstable/gtk-update-icon-cache.html
is my guess.

andre
--
 mailto:ak-47@... | failed
 http://www.iomc.de/  | http://blogs.gnome.org/aklapper

_______________________________________________
gnome-love mailing list
gnome-love@...
http://mail.gnome.org/mailman/listinfo/gnome-love


_______________________________________________
gnome-love mailing list
gnome-love@...
http://mail.gnome.org/mailman/listinfo/gnome-love

Re: How can I have an icon in the gnome-menu ?

by Vincent Untz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Le lundi 02 mars 2009, à 11:02 +0100, Lionel Dricot a écrit :
> But in the case of a python program, there's no make file or stuffs like
> that.

I don't see why there'd be no Makefile with a python program. It's not
true for GNOME modules written in python ;-)

(also, this is mostly a packaging issue in your case, so it's not about
Makefile)

Vincent

--
Les gens heureux ne sont pas pressés.
_______________________________________________
gnome-love mailing list
gnome-love@...
http://mail.gnome.org/mailman/listinfo/gnome-love

Re: How can I have an icon in the gnome-menu ?

by Lionel Dricot (aka Ploum) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe because I use setup.py (which is standard in python) so I didn't see the need for a Makefile.

But maybe this is not the best place to discuss that. If so, I'm sorry for the noise.

On Mon, Mar 2, 2009 at 1:35 PM, Vincent Untz <vuntz@...> wrote:
Le lundi 02 mars 2009, à 11:02 +0100, Lionel Dricot a écrit :
> But in the case of a python program, there's no make file or stuffs like
> that.

I don't see why there'd be no Makefile with a python program. It's not
true for GNOME modules written in python ;-)

(also, this is mostly a packaging issue in your case, so it's not about
Makefile)

Vincent

--
Les gens heureux ne sont pas pressés.
_______________________________________________
gnome-love mailing list
gnome-love@...
http://mail.gnome.org/mailman/listinfo/gnome-love


_______________________________________________
gnome-love mailing list
gnome-love@...
http://mail.gnome.org/mailman/listinfo/gnome-love

Re: How can I have an icon in the gnome-menu ?

by Shaun McCance-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2009-03-02 at 10:29 +0100, Lionel Dricot wrote:

> Hello,
>
> I've packaged my first complete Gnome application but I experience a
> very strange behaviour with icons in the menu. As it was done more by
> try/error than by real understanding, I guess I missed something.
>
> My application is called "gtg" and I've put a gtg.desktop
> in /usr/share/applications with the following line in it :
>
> Icon=gtg
>
> I've also put a gtg.png in /usr/share/icons/hicolor/16x16 22x22 24x24
> and a .svg in scalable.
>
>
> So, does it work ?  Maybe.
>
> On one computer, it worked as soon as the application was installed
> On another computer, it required to killall gnome-panel because the
> icon never showed up.
> On the third computer, there's no icon at all.
>
> All 3 computers are Ubuntu 8.10 and I'm completely lost trying to find
> out what can be the cause of this problem. Also, I don't understand
> what the /usr/share/pixmaps folder is.
>
>
> Is there a good ressource about that ? It still seems like black magic
> to me and I hate that feeling.

http://library.gnome.org/devel/integration-guide/stable/

--
Shaun


_______________________________________________
gnome-love mailing list
gnome-love@...
http://mail.gnome.org/mailman/listinfo/gnome-love