adding stateful actions to menubar with active windows uses LOTS of CPU in GTK4.
Hello,
It seems to be a new problem with gtk4 (compared with gtk3). Once the GtkApplication is running, add stateful actions to the menubar -- for example, to choose between servers that might appear while the programme is running. No problem in Gtk3, but in Gtk4 it takes more and more CPU, essentially creating a "stuck" programme.
See the attached example, which can be run with either version of Gtk, click the "Add some" action to add menu entries (it uses Python 3 / GObject Introspection, I have zero experience doing Gtk in C). GTK4 version is 4.4.0, my system is Debian / sid.
Cheers, Itaï.