Tests fails with GTK 3.24.14
t/overrides.t .................. 1/233 Can't find information for method TreeModel::sort_new_with_model at t/overrides.t line 466.
# Looks like your test exited with 255 just after 112.
t/overrides.t .................. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 121/233 subtests
Looks like this regression / test failure has been introduced with gtk!1134 (merged).
diff --git a/lib/Gtk3.pm b/lib/Gtk3.pm
index 89fb2b2..d1cfa54 100644
--- a/lib/Gtk3.pm
+++ b/lib/Gtk3.pm
@@ -1744,9 +1744,14 @@ be constructed normally.
# Not needed anymore once <https://bugzilla.gnome.org/show_bug.cgi?id=646742>
# is fixed.
sub Gtk3::TreeModelSort::new_with_model {
- my ($class, $child_model) = @_;
- Glib::Object::Introspection->invoke (
- $_GTK_BASENAME, 'TreeModel', 'sort_new_with_model', $child_model);
+ if (Gtk3::CHECK_VERSION (3, 24, 14)) {
+ Glib::Object::Introspection->invoke (
+ $_GTK_BASENAME, 'TreeModelSort', 'new_with_model', @_);
+ } else {
+ my ($class, $child_model) = @_;
+ Glib::Object::Introspection->invoke (
+ $_GTK_BASENAME, 'TreeModel', 'sort_new_with_model', $child_model);
+ }
}
=item * Gtk3::TreeModelSort has a C<get> method that calls
This fixes tests, but I don't know if that is correct fix.