gtk4/
font_chooser.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::{prelude::*, FontChooser};
6
7// rustdoc-stripper-ignore-next
8/// Trait containing manually implemented methods of
9/// [`FontChooser`](crate::FontChooser).
10#[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")]
11#[allow(deprecated)]
12pub trait FontChooserExtManual: IsA<FontChooser> + 'static {
13    #[doc(alias = "gtk_font_chooser_set_filter_func")]
14    #[doc(alias = "set_filter_func")]
15    fn unset_filter_func(&self) {
16        unsafe {
17            crate::ffi::gtk_font_chooser_set_filter_func(
18                self.as_ref().to_glib_none().0,
19                None,
20                std::ptr::null_mut(),
21                None,
22            )
23        }
24    }
25}
26
27impl<O: IsA<FontChooser>> FontChooserExtManual for O {}