Re: ERRATUM

Espen S Johnsen <[email protected]> 04 May 2007 10:07:44 +0200
Newsgroups gmane.lisp.clg.devel
Message-ID <[email protected]>
Carlos Agon <[email protected]> writes:

> sorry I used in my last e-mail functions specifics to our software,  
> anyway the problem is the same
> 
> (setf var (gdk::region-new))
> (gdk::region-union-with-rect var (make-gdk-rect 0 0 100 100))

These functions must also be part of your code as they are not in stock
clg.

I am not certain of what you try to accomplish with this code, but the
preferred method to create a region from a rectangle¹ would be:

(make-instance gdk:region :rectangle #(0 0 100 100))

and to make a union between a region and a rectangle:

(gdk:region-union some-region #(0 0 100 100))

All region set operations can be given rectangles as the last argument
(and with the latest code in CVS also as the first argument)
 
> (gdk::region-get-clipbox var)
> 
> The value NIL is not of type SYSTEM-AREA-POINTER.
>     [Condition of type TYPE-ERROR]

Without a backtrace of the stack it is hard to tell what is wrong.

> I have the same problem calling the function
> 
> (gdk::region-get-rectangles var)

I found a small bug in this function that would cause it to return wrong
output and possible seg fault, but not the error you got.

Sorry I couldn't be of more help.


¹Vectors can be used instead of real rectangle objects as arguments to
some functions

-- 
Espen

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Clg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clg-devel