For the object (middle button) menu, I'd like to always send along the
event, so the object can figure out e.g. a nearby handle or edge.  One way
to do this would be to wrap the normal callback and data up in a structure
that becomes data for a generic callback.  The generic callback then calls
the normal callback with its data and the event (in fact, it might as well
send the whole structure, including the callback pointer, so the callback
can modify itself).  Can you think of any reason this would be a bad idea?
Any better implementation?

-Lars is beginning to understand why Gtk is well-liked.

Reply via email to