Skip to content

Fix template use in GTK4

Florian Müllner requested to merge fmuellner/gjs:gtk4-templates into master

Quoting the main commit:

The way how language bindings can hook into GtkBuilder's closure
creation has changed in Gtk4. As Gtk.Widget.set_connect_func() was
removed on the way, any custom Gtk4 widget that uses a template
throws as a result.

This adds an alternative code path to the existing GTK override. I guess if differences increase, it might make sense to split it, but for now the common paths still largely outweigh the separate ones.

Merge request reports