1use glib::object::IsA;
6use glib::translate::*;
7use gtk_sys;
8use std::ptr;
9use ListBox;
10
11pub trait ListBoxExtManual: 'static {
12 #[cfg(any(feature = "v3_16", feature = "dox"))]
13 fn unbind_model(&self);
14}
15
16impl<O: IsA<ListBox>> ListBoxExtManual for O {
17 #[cfg(any(feature = "v3_16", feature = "dox"))]
18 fn unbind_model(&self) {
19 unsafe {
20 gtk_sys::gtk_list_box_bind_model(
21 self.as_ref().to_glib_none().0,
22 ptr::null_mut(),
23 None,
24 ptr::null_mut(),
25 None,
26 )
27 }
28 }
29}