In GTK 3, there was gtk_signal_connect() to connect the signals of an XML file loader by gtk_builder_* functions automatically to same-named functions. This worked also in Python in OOP. Now I want to try to achieve the same in node-js. I am developing an own small project by using node-gtk (not: GJS).
I think that node-gtk is missing a class resembling gtk_buildercscope, something named like Gtk.BilderJSScope. However, I wanted to understand how this works in GTKMM before I do anything in node-gtk, but I don’t get it. All examples which use a builder file connect all signals one by one, not by using a single function which connects all at once. Can someone please show me a MWE in either C++ or Python (because these are two languages I roughly understand) where GTK 4 is used with a builder UI file and uses a single function to connect signals?