Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion gtk4-macros/src/blueprint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pub(crate) fn compile_blueprint(blueprint: &[u8]) -> Result<String> {
.unwrap_or_else(|_| panic!("blueprint-compiler not found"));

let mut stdin = compiler.stdin.take().unwrap();
stdin.write_all(b"using Gtk 4.0;\n")?;
stdin.write_all(blueprint)?;
drop(stdin);

Expand Down
2 changes: 2 additions & 0 deletions gtk4-macros/tests/my_widget.blp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Gtk 4.0;

template $MyWidget5 {
Label label {
label: 'foobar';
Expand Down
2 changes: 2 additions & 0 deletions gtk4-macros/tests/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ mod imp4 {

#[derive(Debug, Default, gtk::CompositeTemplate)]
#[template(string = "
using Gtk 4.0;

template $MyWidget4 : Widget {
Label label {
label: 'foobar';
Expand Down
Loading