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();
controller.pressed.connect(button_press_event_handler);
expression_books.add_controller(controller);