Skip to content

Commit 35a3844

Browse files
macros: Fix blueprint warnings
1 parent c9927cf commit 35a3844

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ yuraiz:
9393
```rust
9494
#[derive(Debug, Default, gtk::CompositeTemplate)]
9595
#[template(string = "
96-
template MyWidget : Widget {
96+
template $MyWidget : Widget {
9797
Label label {
9898
label: 'foobar';
9999
}

gtk4-macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn include_blueprint(input: TokenStream) -> TokenStream {
156156
///
157157
/// #[derive(Debug, Default, gtk::CompositeTemplate)]
158158
/// #[template(string = "
159-
/// template MyWidget : Widget {
159+
/// template $MyWidget : Widget {
160160
/// Label label {
161161
/// label: 'foobar';
162162
/// }

gtk4-macros/tests/my_widget.blp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
template MyWidget5 {
1+
template $MyWidget5 {
22
Label label {
33
label: 'foobar';
44
}

gtk4-macros/tests/templates.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ mod imp4 {
206206

207207
#[derive(Debug, Default, gtk::CompositeTemplate)]
208208
#[template(string = "
209-
template MyWidget4 : Widget {
209+
template $MyWidget4 : Widget {
210210
Label label {
211211
label: 'foobar';
212212
}

0 commit comments

Comments
 (0)