Re: .desktop file handling

On Sun, 2005-02-06 at 18:19 +0000, Crispin Flowerday wrote:
> On Sun, 2005-02-06 at 19:05 +0100, Marco Pesenti Gritti wrote:
> > In both cases the problem is that gnome-vfs cannot depend on gtk.
> > There are vague plans of a libgnomevfsui library for other things...
> > that could be a good place to put launch with notification/icon apis
> > too.
> > 
> > Out of curiosity can you explain the use case of the icon api?
> In Galeon, when you right click on a page (or image), you get an "Open
> With" option, allowing you to open the page (or image) in your
> configured applications. I thought it would be nice to have the
> application logos in the menu as well as just the application name.

To draw a picture, basically the following should, IMHO, just work:

icon = gnome_vfs_mime_application_get_icon(...);
image = gtk_image_new_from_icon_name(icon, GTK_ICON_SIZE_MENU);

But if I've understood it correctly that can fail because 'icon' is an
absolute filename or includes an extension.  IMHO it's not the
application's responsibility to start interpreting the return value.

Tommi Komulainen                                 tommi komulainen iki fi
GPG 1024D/68388EE6    6FD6 DD79 EB38 BF6F 3533  09C0 04A8 9871 6838 8EE6

Attachment: signature.asc
Description: This is a digitally signed message part

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