Re: Help with .server file



On Tue, 2004-01-20 at 21:58, Ryan Boder wrote:
> On Tue, Jan 20, 2004 at 09:55:04AM +0100, Alexander Larsson wrote:
> > > Or maybe this should be done using bonobo:supported_mime_types? Do
> > > directories have a mime type?
> > 
> > Yeah, they are "x-directory/normal".
> 
> Hmm. So I assume that means there is no way for the context menu item show
> up for all regular files, but not directories. Right?
> 
> That is besides specifically listing all possible mime-types as supported
> mime types and not including x-directory/normal, which seems like it would
> be impossible to do given that users can make up their own mime types.
> 
> If there is no other better solution here I might be interested in adding
> either limited regular expression support or a bonobo:excluded_mime_types
> attribute. Is this the right list to talk about that?

Regular expressions would slow all component activation down a whole
lot. I doubt that acceptable. bonobo:excluded_mime_types might work, you
have to talk to the bonobo people about adding that. However, you might
want to use the new nautilus-extension system in Nautilus 2.5 instead.
We're phasing out the use of bonobo for things like this. In fact, in
Nautilus 2.5 the bonobo menus are implemented using a
NautilusMenuProvider plugin.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an all-American ninja vampire hunter looking for 'the Big One.' She's a 
warm-hearted thirtysomething mermaid who dreams of becoming Elvis. They fight 
crime! 




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