Re: gnome-session: custom per-app icon

Well, you could look at the run dialog's code. :)

Maybe it would be cool if there was a function in libgnome to get the
icon for a command/application? Since this is now being used in two
places? The problem is that it is fairly expensive to get the icon since
you have to look at all the desktop files in all-applications:// and
find the closest matching command. The run-dialog does this in an idle
loop so it's not a big deal, but if you had a function do it in the main
loop it might be very noticeable on slower machines.

- Frank

On Wed, 2003-03-19 at 15:59, Sergey V. Oudaltsov wrote:
> > Why not search for the .desktop file and get the icon from that, like
> > the "Run program" dialog on the panel.
> Very good idea as well. But still noone cared to submit the patch:)
> Anyone smart enough to implement this solution? Actually, I could play
> myself - I just have no slightest idea how to get .desktop properties
> having the application executable name. Just a small hint would be
> nice..
> Cheers,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]