reuse include_str for cross-device compatibilty
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user