Re: GNOME::Selector
- From: Dietmar Maurer <dietmar ximian com>
- To: Martin Baulig <martin home-of-linux org>
- Cc: Michael Meeks <michael ximian com>, Ettore Perazzoli <ettore ximian com>, gnome-components-list gnome org, jacob berkman <jacob ximian com>
- Subject: Re: GNOME::Selector
- Date: Fri, 01 Jun 2001 18:42:31 +0200
Martin Baulig wrote:
> Just got a super-great idea how we can drop GNOME::DirectoryFilter and
> keep things extensible and general enough for all kinds of selector widgets.
>
> Michael's idea with two sequences - for regexps and mime types - won't work
> for general selectors since it's too much tied to the VFS and files.
I really wonder if it makes sense to define a general selector interface. So what
kind of thing do you want to select?
> However, if we use just one sequence - let's call it "filter-patterns" - this
> can be a simple sequence<string> property in the property bag.
>
> And a filter pattern can be a string which is one of (exclamation mark at the
> start means drop the URI if the pattern matches, for instance for dot files)
>
> mime-type:something
> !mime-type:something
> regexp:something
> !regexp:something
> glob:something
> !glob:something
>
> Then it's up to the component to override the default "check_uri" and/or
> "scan_directory" signal handlers to provide a custom filter.
sounds reasonable.
- Dietmar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]