How does one use GTK Constraints/ConstraintTarget with gtkmm?
Summary A developer attempted to apply a Gtk::Constraint to limit a Gtk::Label‘s width relative to a Gtk::Scale within a Gtk::Grid. The confusion arose from Gtk::Constraint::create requiring Glib::RefPtr<Gtk::ConstraintTarget> objects, while standard widgets like Gtk::Label and Gtk::Scale are direct inheritors of Glib::Object. The core issue was a misunderstanding of how Glib::Object relates to Gtk::ConstraintTarget in the gtkmm4 … Read more