[Gtk-sharp-list] gtksourceview-sharp: GetLanguageFromMimeType
Martin Willemoes Hansen
mwh@sysrq.dk
Sun, 08 Feb 2004 19:41:35 +0100
On Sun, 2004-02-08 at 08:52, Todd Berman wrote:
> Im only responding to this just to say that this seems to be a known
> issue, and im really confused as to why this .custom hack was removed
> before a suitable fix was in place.
>
> I'd rather see an occasional null pointer reference than a constant
> breaking every time.
>
> This has caused some issues for MD users, as they are unable to update
> their gtksourceview-sharp because of this, and we need to have this
> fixed soon, beacause when we release a 0.1 of MD it will require a
> sourceview-sharp release.
>
> I am willing to roll gtksourceview-sharp into our tree and build it into
> our build dirs, but I think that kinda was against the point of an
> established gtksourceview module (one place, one location for
> fixes/optimizations).
>
> This really should be fixed one way or another soon.
>
> please ;)
Ahh the new Gtk# release contains the fix for the problem :o)
Here is some sample code:
using System;
using Gtk;
class Test {
static void Main()
{
Application.Init();
GtkSourceView.Init();
SourceLanguagesManager manager =
new SourceLanguagesManager();
Console.WriteLine (
manager.GetLanguageFromMimeType ("text/x-csharp"));
Application.Run();
}
}
mcs Test.cs -r gtk-sharp -r gtksourceview-sharp
--
Martin Willemoes Hansen
--------------------------------------------------------
E-Mail mwh@sysrq.dk Website mwh.sysrq.dk
IRC MWH, freenode.net
--------------------------------------------------------