RE: GTK & BSD
- Posted by Ron Tarrant <rtarrant at sympatico.ca> May 13, 2004
- 574 views
irv mullins wrote: > > You might just comment out the include of pixmap.e, until you get things > > working. None of the demos need it, it's pretty rarely used, I think. Actually, I've had a modicum of success without doing that. I cloned newGDK() in class.e as newPIXBUF() and changed the first sprintf statement. It looks like this: ---------------------------------------- global function newPIXBUF (sequence name) ---------------------------------------- atom handle, id sequence gdkfunction gdkfunction = sprintf("gdk_%s_new",{name}) ------ changed id = define_c_func(PIXLIB,gdkfunction,{},P) if id = -1 then error_halt("Invalid GDK object: " & name) else handle = c_func(id,{}) classes = append(classes,{id,handle,upper(name)}) end if return handle end function Then in pixbuf.e (line #2) I changed the PIXBUF initialization to: global constant PIXBUF = newPIXBUF("pixbuf") After finally catching all the calls to func() and proc() so they all have four args, I got window.exu to work. I also tried unicode.exu and turtle.exu but ran into new problems (my brain is a bit overloaded at the moment or I'd outline them). I'll keep you posted. -Ron T.