This is the mail archive of the
guile-gtk@sourceware.cygnus.com
mailing list for the Guile project.
Converting GdkEvent from C to Guile
- To: Guile-Gtk List <guile-gtk at sourceware dot cygnus dot com>
- Subject: Converting GdkEvent from C to Guile
- From: Stephen Tell <tell at cs dot unc dot edu>
- Date: Thu, 18 Nov 1999 16:05:48 -0500 (EST)
In guile-gtk 0.17, how do I convert a pointer to a GdkEvent (or
GdkEventButton) to an SCM so it can be passed to a guile callback?
With a little rummaging around in the source, I found sgtk_wrap_gtkobj()
which does the appropriate magic for Gtk objects, but (perhaps not too
surprisingly) it coredumps when passed a (GdkEventButton *). There must
be an appropriate function in there someplace.
Thanks,
Steve
--
Steve Tell | tell@cs.unc.edu | http://www.cs.unc.edu/~tell | KF4ZPF
Research Associate, Microelectronic Systems Laboratory
Computer Science Department, UNC@Chapel Hill. W:919-962-1845