I am working on some tutorial-playback functionality for a gtkmm-based
application, K-3D (http://k3d.sourceforge.net). To this end, I would
like to synthesize Gdk events and insert them into the main event loop.
This would not be difficult, except that I cannot obtain the actual
GdkWindow for a given widget. If you run the attached example, press
the button, and view the console output, you will see that the GdkWindow
in the GdkEvent object is not the same as the window returned by
button.get_window()->gobj(). In fact, the latter returns the *parent*
of the GdkEvent window. I need to obtain the actual widget window so I
can generate corresponding events for it. Could anyone comment on this
behavior?
Many thanks,
Tim Shead