makes content moving work

This commit is contained in:
2019-06-06 16:36:10 +02:00
parent b0cfa3f9aa
commit 60312be5d8
5 changed files with 79 additions and 113 deletions

View File

@@ -39,8 +39,8 @@ pub struct Pawn {
impl Pawn {
pub fn new<S: Into<String>>(name: S) -> Self {
let pawn_src = include_str!("../res/pawn.glade");
let builder = gtk::Builder::new_from_string(pawn_src);
let pawn_src = "/home/artus/Projets/rust/playmat/res/pawn.glade";
let builder = gtk::Builder::new_from_file(pawn_src);
let name = name.into();
let label: gtk::Label =
builder