gtk4/
tree_selection.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use glib::translate::*;
4
5use crate::TreeSelection;
6
7impl TreeSelection {
8    #[doc(alias = "gtk_tree_selection_set_select_function")]
9    #[doc(alias = "set_select_function")]
10    #[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")]
11    #[allow(deprecated)]
12    pub fn unset_select_function(&self) {
13        unsafe {
14            crate::ffi::gtk_tree_selection_set_select_function(
15                self.to_glib_none().0,
16                None,
17                std::ptr::null_mut(),
18                None,
19            );
20        }
21    }
22}