Subject: | Gtk3::TreeModelSort::new_with_model fails as of Gtk 3.24.14 |
Date: | Wed, 19 Feb 2020 21:03:45 +0100 |
To: | bug-Gtk3 [...] rt.cpan.org |
From: | Gaëtan Frenoy <gaetan [...] frenoy.net> |
Hello,
Since the release of Gtk 3.24.14 (see
https://gitlab.gnome.org/GNOME/gtk/blob/gtk-3-24/NEWS) and the fix of
introspection issue for GtkTreeModelSort.new_with_model(), see
https://gitlab.gnome.org/GNOME/gtk/issues/1077 ; the perl "fix" for that
issue is actually breaking existing code (see
https://github.com/asbru-cm/asbru-cm/issues/421).
I'm not a perl guru so there is problably a better way to fix this but
here is my suggestion for Gtk3::TreeModelSort::new_with_model:
sub Gtk3::TreeModelSort::new_with_model {
my ($class, $child_model) = @_;
if (Gtk3::get_major_version() > 3 || Gtk3::get_minor_version() > 24
|| Gtk3::get_micro_version() >= 14) {
Glib::Object::Introspection->invoke (
$_GTK_BASENAME, 'TreeModelSort', 'new_with_model', $class,
$child_model);
} else {
Glib::Object::Introspection->invoke (
$_GTK_BASENAME, 'TreeModel', 'sort_new_with_model', $child_model);
}
}
Can you include this change (or something similar) and release a new
version of Gtk3-perl interface ?
Existing application using your great work will really appreciate it :-)
Thanks for your help,
--
Gaëtan