After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 454709 - Tutorial is missing important point about X event signals
Tutorial is missing important point about X event signals
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: documentation
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-07-08 00:04 UTC by quazgar
Modified: 2007-11-05 10:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description quazgar 2007-07-08 00:04:16 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 :-)
Comment 1 Murray Cumming 2007-08-31 09:46:04 UTC
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.
Comment 2 Murray Cumming 2007-11-05 10:30:13 UTC
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).