Re: [Gtk2hs-devel] Request to add pixbufNewFromData

2012-04-23 Thread wagnerdm
Quoting Axel Simon : > I think there is a problem here in that you pass a simple pointer to > the C function which takes ownership of the memory. In order for your > program not to crash you have to ensure that the pointer remains valid > until the program exists. Is there a quick intro to memory

Re: [Gtk2hs-devel] Request to add pixbufNewFromData

2012-04-22 Thread Axel Simon
Hi Chris, On 13.04.2012, at 22:06, Chris Moline wrote: > Hi, I am slowly working on improving HOpenCV and to support displaying > IplImages using Gtk I needed pixbufNewFromData. I've attached a patch > but I'm not sure that I've implemented it correctly. Thanks for your > time. +pixbufNewFromDat

Re: [Gtk2hs-devel] Request to add pixbufNewFromData

2012-04-22 Thread wagnerdm
Quoting Chris Moline : > Hi, I am slowly working on improving HOpenCV and to support displaying > IplImages using Gtk I needed pixbufNewFromData. I've attached a patch > but I'm not sure that I've implemented it correctly. Thanks for your > time. Applied, thanks! ~d -