Re: GNOME::Selector



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.

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.

So I'm going to remove GNOME::DirectoryFilter and implement this now.

And to make a few more people happy, in my local tree, I added a few read-only
properties to the property bag.

-- 
Martin Baulig
martin gnome org (private)
baulig suse de (work)




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