Re: Gtk2::FileFilter by mime type

On Thu, Nov 26, 2009 at 11:28 AM, Zettai Muri <zettaimuri ymail com> wrote:
Hi All,

I am trying to use the following filters:

my $sound_filter = Gtk2::FileFilter->new;

my $image_filter = Gtk2::FileFilter->new;

Because I read here: that 'GtkFileFilter allows wildcards for the
subtype of a mime type, so you can e.g. filter for image/*.'

Is this also possible with the Perl bindings?
I've checked the C implementation of GtkFileFilter and mime types rules are processed with g_content_type_is_a[1] which has different implementations for Unix/Linux and Windows.

In Linux g_content_type_is_a behaves as you expect so 'text/png' is considered a 'text/*'. I haven't tried with a GtkFileFilter yet.

Are you running your program in Linux/Unix or in Windows?

Emmanuel Rodriguez

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