This fixes focus issues when inheriting from these widgets. For example the nautilus issue at [1].
[1] nautilus#3354 (closed)