#9 Support complex pattern in Gtk::Filter

closed
nobody
None
5
2008-10-23
2008-10-23
Vincent Carmona
No

Hi.

I would like to display file with matching different extensions in a Gtk::FileChooserDialog. I try to use Gtk::Filter with the add_pattern method. Given the documentation a shell style glob must be used:
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AFileFilter#add_pattern

With bash, ls *.{extension1,extension2} works fine but the same pattern does not work with Gtk::Filter.add_pattern.

I join a file to demonstrate this (code is dirty).

Gtk::BUILD_VERSION => [2, 14, 3]

Discussion

  • Example

     
    Attachments
  • Kouhei Sutou
    Kouhei Sutou
    2008-10-23

    This is GTK+'s specification.
    Please the request to GTK+'s Bugzilla: http://bugzilla.gnome.org/

     
  • Kouhei Sutou
    Kouhei Sutou
    2008-10-23

    • status: open --> closed