Re: gdk-pixbuf and mime-types



[i'm moving discussion of the components stuff to gnome-components-list]

On 07 Jun 2001 08:16:38 -0700, Darin Adler wrote:
> On Thursday, June 7, 2001, at 07:26  AM, jacob berkman wrote:
> 
> > while hacking eog to use the new file selector, it occured to me that
> > eog doesn't actually know what kinds of files it can open, since this
> > depends entirely on gdk-pixbuf (which can actually load files of types
> > it didn't come with, due to the plugins, right?).
> >
> > so are there problems with adding API to gdk-pixbuf to get a list of
> > mime-types it thinks it can load?
> 
> An API for this would be a good addition. But that still doesn't allow the 
> .oaf file to contain the proper list of MIME types, so gnome-vfs (and 
> hence Nautilus) can't be told which types of files the eog component can 
> handle. If we are going to fix this problem, it might be nice to fix it in 
> a way that solves this aspect of the problem too.

off the top of my head, it would seem the loaders should advertise
which mime types they can load, and then gdk-pixbuf asks gnome-vfs
"what type of file is this?" and then invokes the proper launcher.

sadly in reality this won't happen, as gdk-pixbuf is in gtk and
probably won't be able to depend on gnome-vfs.

eog could generate the list of mime types it supports at build time, by
querying gtk (this could even be a perl script, possibly) and build its
oaf/vfs config files this way.

but if gdk-pixbuf could have 3rd party plugins (xcf comes to mind) then
this seems like a harder problem - which will probably come up in some
other application (gnumeric?).

i don't have any ideas on this problem, though.

jacob

--
In the afterlife, a cute .signature will only get you so far.





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