[Mono-list] Re: [Gtk-sharp-list] nplot + gtk#?

Mark Gallop gallopma@cyllene.uwa.edu.au
Tue, 08 Feb 2005 10:04:24 +0800


Ben Maurer wrote:

>On Mon, 2005-02-07 at 15:53 +0800, Mark Gallop wrote:
>  
>
>
>Try using the Gtk.DotNet stuff that is in HEAD now (you can c&p the
>code, if you don't want head).
>  
>
Hello

Thanks for the advice. As a test I tried to compile/run:

http://svn.myrealbox.com/viewcvs/trunk/gtk-sharp/sample/DrawingSample.cs?view=markup
http://svn.myrealbox.com/viewcvs/trunk/gtk-sharp/gtkdotnet/Graphics.cs?view=markup

with mono 1.1.3 and windows. It compiles but when I run it I get the error:

//---------
Unhandled Exception: System.EntryPointNotFoundException:
gdk_x11_drawable_get_xdisplay
in <0x0004d> (wrapper managed-to-native) Gtk.DotNet.Graphics:gdk_x11_drawable_ge
t_xdisplay (intptr)
in <0x000c0> Gtk.DotNet.Graphics:FromDrawable (Gdk.Drawable)
in <0x00039> PrettyGraphic:OnExposeEvent (Gdk.EventExpose)
in <0x00062> Gtk.Widget:exposeevent_cb (intptr,intptr)
in <0x0002c> (wrapper native-to-managed) Gtk.Widget:exposeevent_cb (intptr,intpt
r)
in <0x9ec979> (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00004> (wrapper managed-to-native) Gtk.Application:gtk_main ()
in <0x00007> Gtk.Application:Run ()
in <0x0022d> X:Main ()
//---------

Miguel suggested I use his changes to nplot at http://primates.ximian.com/~miguel/tmp/nplot-gtk.tar.gz, 
so I will give that a go.

Thanks again,
Mark