ui file managed
This commit is contained in:
parent
9835987c8e
commit
752f1ce7cc
|
|
@ -29,6 +29,7 @@ use std::cell::RefCell;
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
use std::io::BufReader;
|
use std::io::BufReader;
|
||||||
|
|
||||||
|
|
||||||
use graph::Graph;
|
use graph::Graph;
|
||||||
|
|
||||||
/// Status of Serial reading
|
/// Status of Serial reading
|
||||||
|
|
@ -65,7 +66,7 @@ enum MessageSerialThread {
|
||||||
// Building and configuring GUI
|
// Building and configuring GUI
|
||||||
pub fn build_ui(app: >k::Application) {
|
pub fn build_ui(app: >k::Application) {
|
||||||
let config = Arc::new(Mutex::new(Config::new()));
|
let config = Arc::new(Mutex::new(Config::new()));
|
||||||
let builder = gtk::Builder::from_file("ui.glade");
|
let builder = gtk::Builder::from_file(std::env::current_exe().unwrap().parent().unwrap().join("ui.glade"));
|
||||||
|
|
||||||
let win = builder.get_object::<gtk::ApplicationWindow>("win").expect("Resource file missing!");
|
let win = builder.get_object::<gtk::ApplicationWindow>("win").expect("Resource file missing!");
|
||||||
win.set_application(Some(app));
|
win.set_application(Some(app));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue