11 lines
192 B
Rust
11 lines
192 B
Rust
|
use std::sync::Once;
|
||
|
|
||
|
static INITIALIZED: Once = Once::new();
|
||
|
|
||
|
pub fn gtk_init() {
|
||
|
INITIALIZED.call_once(|| {
|
||
|
eprintln!("initializing GTK");
|
||
|
let _ = gtk::init();
|
||
|
});
|
||
|
}
|