Re: EggRecent [was Re: libomelette [was Re: glib unicode regular expression api]]
- From: Federico Mena Quintero <federico ximian com>
- To: Sven Neumann <sven gimp org>
- Cc: GTK+ development mailing list <gtk-devel-list gnome org>, Anders Carlsson <andersca gnome org>, GNOME Desktop <desktop-devel-list gnome org>
- Subject: Re: EggRecent [was Re: libomelette [was Re: glib unicode regular expression api]]
- Date: Thu, 08 Jul 2004 11:41:30 -0500
On Thu, 2004-07-08 at 12:21 +0200, Sven Neumann wrote:
> > - Why do we need egg_recent_item_set_mime_type()?
> > egg_recent_item_new_from_uri() computes the MIME type automatically.
> > Isn't that what we want to happen in all cases?
>
> How can it compute the mimetype from the URI? It would have to open
> the file again (bad!) and even then it can only succeed when the
> mime-type is registered in shared-mime-info database which is not
> guaranteed to be the case. It should be left to the application to set
> the mime-type.
Yeah, good point... the application may even be saving to a filename
without an extension.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]