This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]