gtk4/im_context_simple.rs
1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use std::path::Path;
4
5use glib::translate::*;
6
7use crate::IMContextSimple;
8
9impl IMContextSimple {
10 #[doc(alias = "gtk_im_context_simple_add_compose_file")]
11 pub fn add_compose_file(&self, compose_file: impl AsRef<Path>) {
12 unsafe {
13 let compose_file = compose_file.as_ref();
14 crate::ffi::gtk_im_context_simple_add_compose_file(
15 self.to_glib_none().0,
16 compose_file.to_glib_none().0,
17 );
18 }
19 }
20}