Re: GtkFileChooser, Filters and Typeahead
- From: Richard Boaz <riboaz xs4all nl>
- To: GTK dev list <gtk-list gnome org>
- Subject: Re: GtkFileChooser, Filters and Typeahead
- Date: Fri, 21 Jul 2006 16:43:25 +0200
I have previously done exactly as Mark as suggested here.
Use the extensibility of the FileChooserDialog to add your own
widgets, namely, an entry widget. The callback for this entry widget
should read the test entry's contents, and then apply this user-
provided filter to the gtk_file_filter_add_pattern() and
gtk_file_chooser_set_filter() functions, which will then
automatically update the contents of the file window as per this filter.
requires a little playing around to get what you want, but it really
is as simple as that. (btw, using regex is not necessary here.)
good luck,
richard
On Jul 21, 2006, at 4:22 PM, Mark Kegel wrote:
I recently read in a tutorial (or somewhere) that FileChooserDialog is
extendable with your own widgets. You should just be able to add
whatever widgets you want since FileChooserDialog inherits from
Container. You may be able to then grab the text from a widget and
send that text as a filter to the file chooser. Just a thought.
Mark Kegel
On 7/21/06, Surya Kiran Gullapalli
<suryakiran gullapalli gmail com> wrote:
Why not give user additional filter pattern, using regex. (another
window
opening up to specify the pattern.)
If you use regex then take look at pcre and Boost.Regex.
SUrya
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]