Hi,
I’m developing a project which uses GLib and C-based inheritance/OOP (it’s Midnight Commander’s fork). Basically, all TUI elements have a type Widget
as the first member, some other inherit this way such element further, etc.
I wonder what benefits could it give to add GObject as the first member of Widget struct? Ie. to inherit it and thus to make all widgets a GObject? I have briefly read something about properties and signals, however I would like to shed some light on what a GObject really is, by asking about immediate side effects of just inheriting it?