GNOME Bugzilla – Bug 454709
Tutorial is missing important point about X event signals
Last modified: 2007-11-05 10:30:13 UTC
To avoid problems like this http://mail.gnome.org/archives/gtkmm-list/2004-December/msg00145.html I strongly suggest adding a sentence or to to http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/apbs06.html Proposal: In the 3 line example, add between line 2 and 4: --- button.add_events( Gdk::BUTTON_PRESS_MASK ); --- And in the text below: --- Most/Some elements don't listen to X events in the first place, so this event has to be added with the add_events command. --- It took me half an hour (and much more time to much mor people it seemes if you consider that mail is already 3 years old) and it should be easy to copy&paste this proposal into the tutorial :-)
A patch would be welcome. We need to provide some clues about what widgets need what events to be added, though I'm not sure how we would get this information.
I have added some text to the trunk of the new gtkmm-documentation module: 2007-11-05 Murray Cumming <murrayc@murrayc.com> * docs/tutorial/gtkmm-tut.xml: x-event-signals section: Mention add_events(), set_events(), and EventBox. EventBox section: Mention set_events(). Bug #454709 (Daniel Hornung).