Missing callback : How to implement it


#1

Hi

I’m running some old code, 6 months old approximately, and I’m running
into a problem :

/[…]/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/gobject-introspection-3.0.7/lib/gobject-introspection/loader.rb:551:in
`invoke’: TODO: (sort_func) callback is not
supported yet. (NotImplementedError)

I’m wondering : Is there a documentation on how to implement it ?

Here is the snippet :

$builder[‘users_treemodelsort’].set_default_sort_func do |i1, i2|
i1[1] <=> i2[1] || 0
end

EDIT

I found after posting :
https://github.com/ruby-gnome2/ruby-gnome2/issues/596

I will try on 3.0.8. Hope it gets released soon.