Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
flush
Browse files Browse the repository at this point in the history
svn path=/trunk/gtksourceview-sharp/; revision=20597
  • Loading branch information
Martin Willemoes Hansen committed Nov 28, 2003
1 parent 2eea26c commit 1342080
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gtksourceview/SourceLanguagesManager.custom
@@ -0,0 +1,8 @@
// Workaround for InvalidCastException bug

[DllImport("gtksourceview-1.0")]
static extern IntPtr gtk_source_languages_manager_get_language_from_mime_type(IntPtr raw, string mime_type);

public Gtk.SourceLanguage GetLanguageFromMimeType(string mime_type) {
return new Gtk.SourceLanguage (gtk_source_languages_manager_get_language_from_mime_type(Handle, mime_type));
}

0 comments on commit 1342080

Please sign in to comment.