RE: GTK & BSD

new topic     » goto parent     » topic index » view thread      » older message » newer message

Ron Tarrant wrote:
> 
> 
> 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.

Good. It seems that Linux is far more lax about some things (or, if 
you prefer, handles them more intelligently :) than BSD, when it comes 
to calls to shared libraries. GTK on Windows falls somewhere between the 
two. I'll keep that in mind when (and if) I do another version.

Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu