This is the mail archive of the guile-gtk@sourceware.cygnus.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]

Re: Converting GdkEvent from C to Guile


Stephen Tell <tell@cs.unc.edu> writes:

> Just to make sure I understand Gdk's (undocumented) rules: when I get the
> GdkEvent as an argument to a handler set with gtk_signal_connect(),
> Gdk/Gtk is going to free the event when the handler returns.

Yes, more or less.  It just reuses the memory for the next event, in
the normal case.

> So if I let it escape to the guile-gtk world, I set COPYP to TRUE,
> so guile frees its copy when it is done with it.

Correct.
 
- Marius

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