gtk-rs / gtk

DEPRECATED, use https://github.com/gtk-rs/gtk3-rs repository instead!
https://gtk-rs.org/
MIT License
1.24k stars 82 forks source link

The TreeSortable functions are called on the underlying model #982

Closed sdroege closed 4 years ago

sdroege commented 4 years ago

As such, they are most likely not of type TreeSortable. The only thing we know about them is that they are some kind of TreeModel, so use that type instead of panicking.

Also use from_glib_borrow() in the trampolines.

Fixes https://github.com/gtk-rs/gtk/issues/960


CC @BenjaminRi @EPashkin @GuillaumeGomez

sdroege commented 4 years ago

@GuillaumeGomez Green CI (even macos passed this time, suspicious!)

GuillaumeGomez commented 4 years ago

Well, dark magic isn't always bad. :3