Mime types



Good day.

I am using Gtk::FileChooserDialog.
And add filter to allow select only images:

...
   Gtk::FileFilter filter;
   filter.set_name( _( "Image Files" ) );
   filter.add_mime_type( "image/*" );
   fileDlg.add_filter( filter );
...

Problem: it works well on Linux, but shows nothing on Win32 platform.

Gtk-2.4.14
Gtkmm-2.4.11

Win32 platform - using MinGW to build application.

I could use add_pattern() to filter images by file extension, but I guess, it is not so illegant way as with mime types.
Any suggestions?

thanks in advance,
-andrew




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