Re: Gtk2::FileFilter by mime type
- From: Zettai Muri <zettaimuri ymail com>
- To: Emmanuel Rodriguez <emmanuel rodriguez gmail com>, Emmanuele Bassi <ebassi gmail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Gtk2::FileFilter by mime type
- Date: Sat, 5 Dec 2009 12:07:26 -0800 (PST)
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]