Re: GtkFileChooser, Filters and Typeahead

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

 



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@xxxxxxxxx> 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@xxxxxxxxx
>> http://mail.gnome.org/mailman/listinfo/gtk-list
>>
>>
>>
> _______________________________________________
> 
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux