Re: GnomeVFS API gnome_vfs_mime_get_key_list() problem.



What are you trying to do exactly ? There are higher level functions in
gnome-vfs to get the apps able to handle a specific mime-type and things
like that

Le jeu 08/05/2003 à 05:23, 725eb0c8ef771c09ee a écrit :
> 1. It's on function GList* gnome_vfs_mime_get_key_list (const char *mime_type);
[...]
>  Then why the result is different. I've also
> seen that it returns different results with other mime types.

That's surprising that it returns NULL for PostScripts, I'll have to try
that. 

> 
> So, the problem is what exactly this gnome_vfs_mime_get_key_list() should return?
> 
> The comments with this function is confusing: return a GList that contains 
> private strings with all of the keys associated with the mime_type.
> 

.keys files define attributes which are attached to a specific mime type
(the names of these attributes are what you get with
gnome_vfs_mime_get_key_list). Then, gnome-vfs can get the value of these
attributes (which is a string) to get some info about this mime type,
for example a human readable category name for the mime type (eg
text/plain would belong to the Text Documents category), or a list of
preferred apps/components to open this mime-type (this is what the
various short_list attributes are used for). But you'd better avoid
directly accessing these attributes if possible, and use the higher
level API instead.

> I'm confused the problems. Any comments and help are appreciated.

Once again, what are you trying to do ? I strongly recommend not to use
gnome_vfs_mime_get_key_list... :)

Hope that helps,

Christophe

> Thanks.
> Daniel Z.
> 
> 
> _______________________________________________
> gnome-vfs-list mailing list
> gnome-vfs-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-vfs-list

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



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