Could provide a simple way to bind event handler?

I’m upgrading my app Kangaroo from GTK3 to GTK4, found that the events need to add them manually, and will produce much code, it’s wired and boring, could provide a simple way to do them?

var expression_books = new Gtk.Notebook();
expression_books.scrollable = true;
expression_books.width_request = 400;
expression_books.expand = true;

var controller = new GestureClick();

If you use UI files you can add them as <child> elements directly.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.