CustomSorter: Implement unset_sort_func
Fixes:
use crate::CustomSorter;
use crate::Ordering;
use glib::translate::*;
+use std::ptr;
impl CustomSorter {
#[doc(alias = "gtk_custom_sorter_new")]
@@ -34,6 +35,12 @@ impl CustomSorter {
)
}
}
+
+ pub fn unset_sort_func(&self) {
+ unsafe {
+ ffi::gtk_custom_sorter_set_sort_func(self.to_glib_none().0, None, ptr::null_mut(), None)
+ }
+ }
}
unsafe extern "C" fn destroy_closure<F: Fn(&glib::Object, &glib::Object) -> Ordering + 'static>(
