Re: [gtkmm] Finding mime type



On Fri, 2004-07-02 at 09:28 +0300, Veiko Sinivee wrote:
> Thanks, but I'd like to keep the possibility open to be
> able to port my GTKmm app to win32 too. Creating a dependency to GNOME would disable this, right?

There is no such library as "GNOME". But, yes, creating a dependendy to
gnome-vfs would probably make it difficult to run your app on Windows,
unless you port gnome-vfs to Windows. Windows probably has its own MIME-
type system that you might use.

> Well I found an interesting function in GTK+
> header file xdgmime/xdgmime.h -
> const char *xdg_mime_get_mime_type_for_file(const char *file_name);
> This lookes like exactly what I need, but this header
> is no longer there if you compile and install GTK+!
> Any comments?

Yes, that is a private non-installed GTK+ header. And I don't know
anything about that function.

I think that GTK+ does have some internal cross-platform MIME stuff, for
use by the FileSelector. You might investigate how it works if you need
clues about how to do something similar.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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