Feature request: extend GtkBuildable with methods to move and remove children
I believe it would be very beneficial for Gtk community if GtkBuildable
interface was extended to include additional methods not just to build widgets, but also manipulate their children.
I propose to create new interface GtkControllable
(name is not set in stone) which will extend GtkBuildable
and add new methods like: insert_child
, move_child
and remove_child
. All the widgets that implement GtkBuildable
should also be updated to implement GtkControllable
. Details to be discussed.
Such capabilities could be leveraged by 3rd party frameworks to create applications using Gtk. For example, one could make React like framework for gjs.
Proposed change is backwards compatible and could be rolled out incrementally for all widgets.