Re: mime_type_is_known()
- From: Alexander Larsson <alexl redhat com>
- To: Bryan Forbes <bryan reigndropsfall net>
- Cc: "gnome-vfs-list gnome org" <gnome-vfs-list gnome org>
- Subject: Re: mime_type_is_known()
- Date: 31 Aug 2004 09:12:13 +0200
On Mon, 2004-08-30 at 21:21, Bryan Forbes wrote:
> I was working on Coaster today and I had recently upgraded to gnome-vfs
> 2.7 and I got a warning from bakery about an mime-type that was unknown.
> I checked and all the mime-types that coaster uses are registered
> correctly and nautilus reports them correctly. I started digging and
> found that bakery uses Gnome::Vfs::Mime::type_is_known(), which wraps
> gnome_vfs_mime_type_is_known(). I opened up the source to that function
> and saw this:
>
> gboolean
> gnome_vfs_mime_type_is_known (const char *mime_type)
> {
> if (mime_type == NULL) {
> return FALSE;
> }
>
> g_return_val_if_fail (!does_string_contain_caps (mime_type),
> FALSE);
>
> if (!gnome_vfs_mime_inited)
> gnome_vfs_mime_init ();
>
> reload_if_needed ();
>
> return FALSE;
> }
>
> Why does this function always return false? If this is the correct
> behavior for this function, is there a way to tell if an mime-type is
> known?
No, this is a bug. This function was missed in the moving to the new
mime type system and will have to be fixed.
Btw. What do you need the function for?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a gun-slinging guitar-strumming farmboy gone bad. She's a psychotic
renegade cab driver married to the Mob. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]