Skip to content

Commit

Permalink
Remove using Gtk 4.0 decl from blueprint include
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcodes2020 committed Dec 4, 2024
1 parent 3a99628 commit df577d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
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

0 comments on commit df577d9

Please sign in to comment.