Errata - Pro PHP-GTK page 58 - GtkEventBox does NOT block its children’s events
I have been learning PHP-GTK. I was following Chapter 4 of the Pro PHP-GTK book by Scott Mattocks, published by Apress (published 2006).
On page 58 it says:
“Because putting a widget inside an event box basically cuts it off from the user, it may not always be the best solution”.
I am new to PHP-GTK, but I gather from the documentation (and through experimentation) that, although the sentence (above) may have been truer at the time of publication, in the current form of PHP-GTK (version 2.12.9), the event box can be set up so that it does NOT cut off a widget from the user. In fact it is default behaviour.
This ‘to-cut-off-or-not-to-cut-off’ behaviour can be toggled using its set_above_child() method of the GtkEventBox object. An instance’s current setting can be discovered via its get_above_child() method.
By default, a GtkEventBox’s ‘above_child’ property is set to FALSE. This means that events in the event box’s children will first go to that (child) widget, and then to the (parent) Eventbox itself.

July 27th, 2011 at 8:25 pm
They say you learn something new every day, after reading this post it’s safe to state that I can go back to sleep! Lol.