Re: Gtk2::FileFilter by mime type



you can add multiple rules to a filter, but in this case I'd check the
OS you're running on to decide what to use, e.g.:

 if ($^O eq 'MSWin32') {
     $filter->add_pattern('*.mp3');
 }
 else {
     $filter->add_mime_type('audio/mp3');
 }


This is probably the best solution. 

Thank you very much for this.



      __________________________________________________________________________________
Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7.
Enter now: http://au.docs.yahoo.com/homepageset/




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