1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use crate::IMContextSimple;
use glib::translate::*;
use glib::IsA;
use std::path::Path;
pub trait IMContextSimpleExtManual: 'static {
#[doc(alias = "gtk_im_context_simple_add_compose_file")]
fn add_compose_file<P: AsRef<Path>>(&self, compose_file: P);
}
impl<O: IsA<IMContextSimple>> IMContextSimpleExtManual for O {
fn add_compose_file<P: AsRef<Path>>(&self, compose_file: P) {
unsafe {
let compose_file = compose_file.as_ref();
ffi::gtk_im_context_simple_add_compose_file(
self.as_ref().to_glib_none().0,
compose_file.to_glib_none().0,
);
}
}
}