This is the mail archive of the
guile-gtk@sourceware.cygnus.com
mailing list for the Guile project.
Re: Converting GdkEvent from C to Guile
- To: Stephen Tell <tell at cs dot unc dot edu>
- Subject: Re: Converting GdkEvent from C to Guile
- From: Marius Vollmer <mvo at zagadka dot ping dot de>
- Date: 19 Nov 1999 22:51:17 +0100
- Cc: Guile-Gtk List <guile-gtk at sourceware dot cygnus dot com>
- References: <Pine.GHP.4.10.9911181839520.27875-100000@rukbat.cs.unc.edu>
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