[Plplot-devel] extcairo w/ GtkAda

2015-06-12 Thread Sundelin Henri
Hi, I’ve been trying to get the extcairo driver to work with GtkAda. I’ve been trying to replicate the ext-cairo-test.c example, but I haven’t been yet succesful, I get a segfault.. Everything works fine with pdfcairo driver though. I had to expand the Ada binding a bit, since pl_cmd was not av

Re: [Plplot-devel] extcairo w/ GtkAda

2015-06-12 Thread James Tappin
>From a quick check of one of the Fortran exmples in gtk-fortran, I think that the problem is that the call is too early. The call to pl_cmd needs to come AFTER the call to plinit or plstar (it seems counter-intuitive but that seems to be the case) -- here is the relevant bit from the gtk version o

Re: [Plplot-devel] extcairo w/ GtkAda

2015-06-12 Thread Sundelin Henri
Hi, Yes, that actually helped, seems to be working now! The initialize function is the default one that comes with the thick Ada binding. Thanks! Lähettäjä: James Tappin mailto:jtap...@gmail.com>> Päivämäärä: Saturday 13 June 2015 00:12 Vastaanottaja: Henri Sundelin mailto:henri.sunde...@aalto