monorepo/fitnesstrax/app/src/gtk_init.rs

11 lines
192 B
Rust
Raw Normal View History

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