I’m trying to implement an own widget class. It should expose the interface for a Bin, i.e. it should allow me to add one child to it. Internally - in my idea at least - it will use a hierarchy of Box’es and/or Grid’s. It places the child widget that we got from the Bin interface somewhere there, but also some other buttons and stuff (created and driven internally, not coming through any public interface).
Does the idea make sense, or is it faulty? In the latter case, why? If it makes sense, what is the best way to do that? Obviously it’s not the way to go to just derive from Bin and Grid, since it makes all the internal Grid stuff public (and perhaps will lead to some hard conflicts), right?
I’m not entirely sure, but it looks like HeaderBar does somewhat similar things (I’d just be lost in understanding its source code for sure).
I’m using Gtk3 and Python/PyGObject.