Skip to content

0.6.0

Compare
Choose a tag to compare
@bilelmoussaoui bilelmoussaoui released this 08 Feb 16:49
· 39 commits to 0.6 since this release

Bilal Elmoussaoui:

yuraiz:

#[derive(Debug, Default, gtk::CompositeTemplate)]
#[template(string = "
template MyWidget : Widget {
    Label label {
        label: 'foobar';
    }
    Label my_label2 {
        label: 'foobaz';
    }
}
")]
pub struct MyWidget {
    #[template_child]
    pub label: TemplateChild<gtk::Label>,
    #[template_child(id = "my_label2")]
    pub label2: gtk::TemplateChild<gtk::Label>,
}