gtk/list_box.rs
1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use crate::{ListBox, ffi};
4use glib::object::IsA;
5use glib::translate::*;
6use std::ptr;
7
8pub trait ListBoxExtManual: IsA<ListBox> + 'static {
9 fn unbind_model(&self) {
10 unsafe {
11 ffi::gtk_list_box_bind_model(
12 self.as_ref().to_glib_none().0,
13 ptr::null_mut(),
14 None,
15 ptr::null_mut(),
16 None,
17 )
18 }
19 }
20}
21
22impl<O: IsA<ListBox>> ListBoxExtManual for O {}