#if wxUSE_MIMETYPE && wxUSE_LIBGNOMEVFS
+#ifndef WX_PRECOMP
+ #include "wx/log.h"
+ #include "wx/module.h"
+#endif
+
#include "wx/mimetype.h"
#include "wx/gtk/private.h"
-#include "wx/module.h"
#include "wx/dynlib.h"
-#include "wx/log.h"
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
(), (), FALSE )
wxDL_METHOD_DEFINE( void, gnome_vfs_shutdown,
(), (), /**/ )
-
+
wxDL_METHOD_DEFINE( GnomeVFSResult, gnome_vfs_mime_set_icon,
(const char *mime_type, const char *filename), (mime_type, filename), GNOME_VFS_OK )
};
wxDL_METHOD_LOAD( m_gnome_vfs_lib, gnome_vfs_init, success )
wxDL_METHOD_LOAD( m_gnome_vfs_lib, gnome_vfs_shutdown, success )
-
+
m_ok = true;
}
const wxString& strDesc)
{
int nIndex = AddToMimeData(strType, strIcon, entry, strExtensions, strDesc, true);
-
+
if ( nIndex == wxNOT_FOUND )
return false;
// User modificationt to the MIME database
// are not supported :-)
}
-
+
return false;
}
if (gs_lgvfs->IsOk())
{
if (gs_lgvfs->gnome_vfs_init())
- wxMimeTypesManagerFactory::SetFactory( new wxGnomeVFSMimeTypesManagerFactory );
+ wxMimeTypesManagerFactory::Set( new wxGnomeVFSMimeTypesManagerFactory );
}
return true;
}
{
if (gs_lgvfs->IsOk())
gs_lgvfs->gnome_vfs_shutdown();
-
+
delete gs_lgvfs;
}