reuse include_str for cross-device compatibilty

This commit is contained in:
2019-06-06 16:38:06 +02:00
parent 60312be5d8
commit c67c4145a7
3 changed files with 6 additions and 6 deletions

View File

@@ -35,8 +35,8 @@ struct CellWidget {
impl CellWidget {
fn new(pos: CellPosition, header_text: &str) -> Self {
let cell_src = "/home/artus/Projets/rust/playmat/res/cell.glade";
let builder = gtk::Builder::new_from_file(cell_src);
let cell_src = include_str!("../res/cell.glade");
let builder = gtk::Builder::new_from_string(cell_src);
// Set up reactivity on buttons
let eventbox: gtk::EventBox =