[Gtk-sharp-list] gtk-dotnet on Mac OS X
mkestner at gmail.com
Wed Sep 15 10:05:34 EDT 2010
On Tue, 2010-09-14 at 04:34 -0700, Dimitar Dobrev wrote:
> I'm trying to use gtk-dotnet, the latest version, on Mac OS X. I am using
> the following DLL map saved in a file called gtk-dotnet.dll.config, located
> in the same folder as gtk-dotnet.dll:
> <dllmap dll="libgdk-win32-2.0-0.dll" target="libgdk-quartz-2.0.dylib"/>
> When I call Gtk.DotNet.Graphics.FromDrawable it fails with a
> System.EntryPointNotFoundException: "gdk_x11_drawable_get_xdisplay". I also
> tried with "libgdk-quartz-2.0.0.dylib" instead of "libgdk-quartz-2.0.dylib"
> - the same result. Which function should I use to get this working as in
> Windows and Linux?
I think the short answer is that the method is only currently supported
with the X11 backend on osx. FromDrawable itself will need to be
extended to support conversion of whatever resources the quartz backend
is exposing to a System.Drawable.Graphics class. The code currently
assumes win32 backend on windows and x11 backend everywhere else.
The more problematic side is that I've been told the cocoa support in
System.Drawing is only about 70% cooked, so once you have the Graphics,
it's touch and go as to whether you can do anything with it.
So you may be better off with Cairo or Gdk drawing.
More information about the Gtk-sharp-list