This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
Completed GdkWindow; enhanced design
- From: Marko Rauhamaa <marko at pacujo dot net>
- To: guile-gtk at sources dot redhat dot com
- Date: 15 May 2003 00:50:58 -0700
- Subject: Completed GdkWindow; enhanced design
I completed the GdkWindow functions. To implement user_data and filter
callbacks (while protecting them from GC), I added the boxed_mark ()
function to participate in the GC mark phase. Accordingly, I added a
'mark option to define-boxed and define-struct.
The GdkWindow user_data design is as follows:
The GdkWindow user_data is either NULL (initially) or an SCM list.
The first element of the list is the SCM user data (or #f). The
remainder of the list consists of filter procedures.
You will see that gdk_window_mark will simply return its user_data to
protect it against GC.
Marko
--
Marko Rauhamaa mailto:marko@pacujo.net http://pacujo.net/marko/