Mime types

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

 



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

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux