My program has a DrawingArea which comes out of a UI file and is already existing when I want to replace get_preferred_height_for_width() of it.
My goal is to get a fixed aspect ratio of a child window (DrawingArea).
I've already tried Adding a Method to an Existing Object Instance but that does not seem to work. I can call the overridden function of the object by myself, but Gtk does not call it.
There must be a way to attach get_preferred_height_for_width behaviour to an existing Gtk object which comes out of a UI file.
What am I doing wrong? Any help?