> Searching a bit, I found these: > > http://faq.pygtk.org/index.py?file=faq03.011.htp&req=show > http://www.gtk.org/tutorial1.2/gtk_tut-18.html > > The python one says that the keyboard events work differently than > what I've thought...
You have found an old version of the gtk+ tutorial. There's a newer one at http://developer.gnome.org/gtk-tutorial/unstable/. But I don't think the section on event propagation has been updated. Two things surprise me with these descriptions: 1. It's said that all event signal handlers, connected to a certain widget, are called, regardless of the return values of previously called signal handlers on that widget. This contradicts what is said in the gtkmm tutorial, the "X Event signals" section. 2. An unhandled event signal is said to be propagated to the parent widget, apparently (although not explicitly stated) even if the parent widget has no GdkWindow of its own. Elsewhere it's said that only widgets with a GdkWindow receive event signals. See e.g. the gtkmm tutorial, the "Widgets Without X-Windows" section. It talks about X-Windows rather than GdkWindows, but unless I have misunderstood something, these kinds of windows are equivalent, at least as far as event signals are concerned. In your example code you let the key_release_event signal propagate from the Gtk::Entry to the EventPropagation window, and not to the Entry's parent, the Gtk::Grid. Isn't that because the Grid (which has no Gdk::Window) does not receive the key_release_event signal? > > gtkmm-tutorial-in.xml is a DocBook file. > That sure is a big file :) > Ok, I'll look into it later. > We can divide the work between us: - You fix the formatting of the source code. - I insert your description into gtkmm-tutorial-in.xml, perhaps with some modifications. > If you could help with improving the description, I have some > difficulty in writing proper english :) > English is not my native language. I will probably also make mistakes that irritate native speakers of English. But I can do my best, and then hopefully someone else will comment on our text. Kjell _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
