Improve the TextEntry field #178
|
@ -0,0 +1,10 @@
|
||||||
|
use std::sync::Once;
|
||||||
|
|
||||||
|
static INITIALIZED: Once = Once::new();
|
||||||
|
|
||||||
|
pub fn gtk_init() {
|
||||||
|
INITIALIZED.call_once(|| {
|
||||||
|
eprintln!("initializing GTK");
|
||||||
|
let _ = gtk::init();
|
||||||
|
});
|
||||||
|
}
|
|
@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with Fit
|
||||||
mod app;
|
mod app;
|
||||||
mod app_window;
|
mod app_window;
|
||||||
mod components;
|
mod components;
|
||||||
|
#[cfg(test)]
|
||||||
|
mod gtk_init;
|
||||||
mod types;
|
mod types;
|
||||||
mod view_models;
|
mod view_models;
|
||||||
mod views;
|
mod views;
|
||||||
|
|
Loading…
Reference in New Issue