[Monodevelop-patches-list] r643 - trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/VFS

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sat Jan 24 22:43:01 EST 2004


Author: jluke
Date: 2004-01-24 22:43:01 -0500 (Sat, 24 Jan 2004)
New Revision: 643

Modified:
   trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/VFS/Vfs.cs
Log:
more so tb can test


Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/VFS/Vfs.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/VFS/Vfs.cs	2004-01-25 03:36:47 UTC (rev 642)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/VFS/Vfs.cs	2004-01-25 03:43:01 UTC (rev 643)
@@ -17,9 +17,15 @@
 		[DllImport ("gnomevfs-2")]
 		static extern string gnome_vfs_get_mime_type (string uri);
 		
+		//[DllImport ("gnomevfs-2")]
+		//static extern string gnome_vfs_get_mime_type_for_data (IntPtr data, int length);
+		
 		[DllImport ("gnomevfs-2")]
 		static extern string gnome_vfs_mime_get_icon (string mime_type);
 		
+		[DllImport ("gnomevfs-2")]
+		static extern bool gnome_vfs_mime_type_is_known (string mime_type);
+		
 		// gnome_program_init calls this for you
 		public static bool Init ()
 		{
@@ -36,6 +42,11 @@
 			return gnome_vfs_get_mime_type (filename);
 		}
 		
+		public static bool IsKnownType (string mimetype)
+		{
+			return gnome_vfs_mime_type_is_known (mimetype);
+		}
+		
 		public static bool Shutdown ()
 		{
 			return gnome_vfs_shutdown ();




More information about the Monodevelop-patches-list mailing list