pigui/src/appstate.rs

21 lines
370 B
Rust
Raw Permalink Normal View History

2017-09-13 15:10:51 +00:00
use gtk;
use ui::gui::*;
pub struct AppS {
_cant_construct: (),
pub gui: Gui,
}
impl AppS {
pub fn new() -> Self {
let builder = gtk::Builder::new_from_string(include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/data/ui/window.glade")));
return AppS {
_cant_construct: (),
gui: Gui::new(builder),
}
}
}