`Gtk.Widget.get_allocation` is deprecated from version `4.12` and it's used in different places, we should replace them with `Gtk.Widget.compute_bounds`.