Skip to content

Commit 6ce4d65

Browse files
yuraizbilelmoussaoui
authored andcommitted
Update gtk4-macros docs and CHANGELOG.md
1 parent 080fcc0 commit 6ce4d65

File tree

2 files changed

+85
-51
lines changed

2 files changed

+85
-51
lines changed

CHANGELOG.md

Lines changed: 84 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,63 +3,91 @@
33
## [Unreleased]
44

55
Bilal Elmoussaoui:
6-
- gtk: Implement convenience traits for StringObject
7-
- gtk: Move `gtk::StyleContext::add_provider_for_display` & `gtk::StyleContext::remove_provider_for_display` functions
8-
outside of `gtk::StyleContext` type as it was deprecated in GTK 4.10 causing a wrong deprecation warning.
9-
Switch to `gtk::style_context_add_provider_for_display` & `gtk::style_context_remove_provider_for_display` instead.
6+
7+
- gtk: Implement convenience traits for StringObject
8+
- gtk: Move `gtk::StyleContext::add_provider_for_display` & `gtk::StyleContext::remove_provider_for_display` functions
9+
outside of `gtk::StyleContext` type as it was deprecated in GTK 4.10 causing a wrong deprecation warning.
10+
Switch to `gtk::style_context_add_provider_for_display` & `gtk::style_context_remove_provider_for_display` instead.
11+
12+
Yuri Izmer:
13+
14+
- gtk4-macros: [Extend blueprint support to files](https://github.com/gtk-rs/gtk4-rs/pull/1348)
15+
16+
```rust
17+
#[derive(Debug, Default, gtk::CompositeTemplate)]
18+
#[template(file = "src/my_widget.blp")] // relative to the project directory
19+
pub struct MyWidget {
20+
#[template_child]
21+
pub label: TemplateChild<gtk::Label>,
22+
#[template_child(id = "my_label2")]
23+
pub label2: gtk::TemplateChild<gtk::Label>,
24+
}
25+
```
1026

1127
## [0.6.5]
1228

1329
Fabio Valentini:
14-
- gtk4-macros: enable default features of syn
30+
31+
- gtk4-macros: enable default features of syn
1532

1633
## [0.6.4]
1734

1835
Bilal Elmoussaoui:
19-
- gtk: Add missing guard to AccesibleRoleToggleButton
36+
37+
- gtk: Add missing guard to AccesibleRoleToggleButton
2038

2139
## [0.6.3]
2240

2341
Bilal Elmoussaoui:
24-
- gtk/subclass: Adapt per Accessible transfer type changes
25-
- Bump GTK requirement for `v4_10` feature
26-
- Fix nightly clippy warnings
27-
- Fix docs generation
42+
43+
- gtk/subclass: Adapt per Accessible transfer type changes
44+
- Bump GTK requirement for `v4_10` feature
45+
- Fix nightly clippy warnings
46+
- Fix docs generation
2847

2948
Maximiliano Sandoval R:
30-
- rgba: Add TRANSPARENT const
49+
50+
- rgba: Add TRANSPARENT const
3151

3252
## [0.6.2]
3353

3454
Bilal Elmoussaoui:
35-
- gtk: Add Accessible interface implementation support
55+
56+
- gtk: Add Accessible interface implementation support
3657

3758
Sebastian Dröge:
38-
- Add various new GTK 4.10 APIs
59+
60+
- Add various new GTK 4.10 APIs
3961

4062
## [0.6.1]
4163

4264
Julian Hofer:
43-
- Update book to 0.6
44-
- book: Fix clippy warnings
65+
66+
- Update book to 0.6
67+
- book: Fix clippy warnings
4568

4669
Mițca Dumitru:
47-
- book: Adapt to glib-build-tools breaking change
70+
71+
- book: Adapt to glib-build-tools breaking change
4872

4973
Sebastian Dröge:
50-
- gtk4: Use correct length for the `StrV` when passing to C in
51-
`ConstraintLayout::add_constraint_from_description()`
74+
75+
- gtk4: Use correct length for the `StrV` when passing to C in
76+
`ConstraintLayout::add_constraint_from_description()`
5277

5378
## [0.6.0]
5479

5580
Bilal Elmoussaoui:
56-
- Add support for the to be released `gtk::UriLauncher`
57-
- [Improve the API of `gtk::WidgetExt::dispose_template`](https://github.com/gtk-rs/gtk4-rs/pull/1212)
58-
- [Mention the failed to retrieve template child name](https://github.com/gtk-rs/gtk4-rs/pull/1290)
59-
- [Add a macos job](https://github.com/gtk-rs/gtk4-rs/pull/1237)
81+
82+
- Add support for the to be released `gtk::UriLauncher`
83+
- [Improve the API of `gtk::WidgetExt::dispose_template`](https://github.com/gtk-rs/gtk4-rs/pull/1212)
84+
- [Mention the failed to retrieve template child name](https://github.com/gtk-rs/gtk4-rs/pull/1290)
85+
- [Add a macos job](https://github.com/gtk-rs/gtk4-rs/pull/1237)
6086

6187
yuraiz:
62-
- [Add blueprint support](https://github.com/gtk-rs/gtk4-rs/pull/1238)
88+
89+
- [Add blueprint support](https://github.com/gtk-rs/gtk4-rs/pull/1238)
90+
6391
```rust
6492
#[derive(Debug, Default, gtk::CompositeTemplate)]
6593
#[template(string = "
@@ -80,67 +108,72 @@ pub struct MyWidget {
80108
}
81109
```
82110

83-
84111
## 0.5.5
85112

86113
Bilal Elmoussaoui:
87114

88-
- [gtk: Generate FileLauncher API](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/98253e3f4ea7787b4ab7c705f379af5ac768e606)
89-
- [gtk4-wayland: Bump wayland dependencies](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/619825d1985b420cb82a03ba3f58f2cb9c6bd0ad)
90-
- [gtk4-macros: Bump quick-xml](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/ee63f8745603e6cd70cd34758c2901fe9f5ed25d)
91-
- [gtk: Mark show_uri_full as deprecated](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/6a1e8b92410bf4a1b4da94b5354bdf811abfc982)
92-
- [Regenerate with latest gir-files](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/cb917d096dafa08d2710376b1e4f3f2bad8f191b)
115+
- [gtk: Generate FileLauncher API](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/98253e3f4ea7787b4ab7c705f379af5ac768e606)
116+
- [gtk4-wayland: Bump wayland dependencies](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/619825d1985b420cb82a03ba3f58f2cb9c6bd0ad)
117+
- [gtk4-macros: Bump quick-xml](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/ee63f8745603e6cd70cd34758c2901fe9f5ed25d)
118+
- [gtk: Mark show_uri_full as deprecated](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/6a1e8b92410bf4a1b4da94b5354bdf811abfc982)
119+
- [Regenerate with latest gir-files](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/cb917d096dafa08d2710376b1e4f3f2bad8f191b)
93120

94-
Maximilano:
121+
Maximilano:
95122

96-
- [Mark new dialog api as not nullable](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/6b7ade231c90c676fc86351e86b52f99c2d5f104)
123+
- [Mark new dialog api as not nullable](https://github.com/gtk-rs/gtk4-rs/pull/1233/commits/6b7ade231c90c676fc86351e86b52f99c2d5f104)
97124

98125
## 0.5.4
99126

100127
Bilal Elmoussaoui:
101128

102-
- [gtk: Subclass BuilderCScope for the BuilderRustScope](https://github.com/gtk-rs/gtk4-rs/pull/1217/commits/0c00d06c3f0f05362bb3bc8c7c4d78433970a78d)
103-
- [Generate AlertDialog::choose](https://github.com/gtk-rs/gtk4-rs/pull/1217/commits/71f2266d5f0f78245cc54817bbba3ed916838b48)
104-
105-
129+
- [gtk: Subclass BuilderCScope for the BuilderRustScope](https://github.com/gtk-rs/gtk4-rs/pull/1217/commits/0c00d06c3f0f05362bb3bc8c7c4d78433970a78d)
130+
- [Generate AlertDialog::choose](https://github.com/gtk-rs/gtk4-rs/pull/1217/commits/71f2266d5f0f78245cc54817bbba3ed916838b48)
106131

107132
## 0.5.3
108133

109134
Aaron Erhardt:
110135

111-
- [macros: Allow using re-exports of gtk](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/0d5b2c365a5736a00b2ae1b221e32446a91d3929)
136+
- [macros: Allow using re-exports of gtk](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/0d5b2c365a5736a00b2ae1b221e32446a91d3929)
112137

113138
Bilal Elmoussaoui:
114139

115-
- [gsk: Export builders module](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/5e6856b75337ae6f267f79b1c8938aaab189c102)
116-
- [gtk: Properly mark deprecated manual items](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/7421e4714d9c5c1411a1190bf00dfe1d46e7df10)
117-
- [gtk: Generate new 4.10 APIs](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/eabfc82d518f8b9d29452051f39c3209906355a2)
118-
- [gtk: Fix new FontDialog APIs](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/2d4c19b6779d95df6256002e1dbc7798c6d9589b)
119-
- [gtk: Generate AlertDialog](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/4f28a04e59ef8814ab3a858e42fe9d377c85fc5f)
120-
- [gtk: Add IMContextImpl::activate_osk](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/0ba13215ba5f8c7aaed73a9e76f2a46ae45302d2)
140+
- [gsk: Export builders module](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/5e6856b75337ae6f267f79b1c8938aaab189c102)
141+
- [gtk: Properly mark deprecated manual items](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/7421e4714d9c5c1411a1190bf00dfe1d46e7df10)
142+
- [gtk: Generate new 4.10 APIs](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/eabfc82d518f8b9d29452051f39c3209906355a2)
143+
- [gtk: Fix new FontDialog APIs](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/2d4c19b6779d95df6256002e1dbc7798c6d9589b)
144+
- [gtk: Generate AlertDialog](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/4f28a04e59ef8814ab3a858e42fe9d377c85fc5f)
145+
- [gtk: Add IMContextImpl::activate_osk](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/0ba13215ba5f8c7aaed73a9e76f2a46ae45302d2)
121146

122147
Jason Francis:
123-
- [gtk4: use impl_offset() for calculating template child offset](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/a3613c7b9b39fd6a93931e3d4fcbc2291e53272c)
148+
149+
- [gtk4: use impl_offset() for calculating template child offset](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/a3613c7b9b39fd6a93931e3d4fcbc2291e53272c)
124150

125151
Sebastian Dröge:
126-
- [gtk4-macros: Update to quick-xml 0.26](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/064f8114cfa74a8d9d8ce644cd59cdc897d9ff35)
152+
153+
- [gtk4-macros: Update to quick-xml 0.26](https://github.com/gtk-rs/gtk4-rs/pull/1193/commits/064f8114cfa74a8d9d8ce644cd59cdc897d9ff35)
127154

128155
## 0.5.2
129156

130157
Marc-Andre Lureau:
131-
- [gdk-win32: implement Win32Display.add_filter()](https://github.com/gtk-rs/gtk4-rs/pull/1174)
158+
159+
- [gdk-win32: implement Win32Display.add_filter()](https://github.com/gtk-rs/gtk4-rs/pull/1174)
132160

133161
nardoor:
134-
- [Skip init assertion for gdk::set_allowed_backends](https://github.com/gtk-rs/gtk4-rs/pull/1183)
162+
163+
- [Skip init assertion for gdk::set_allowed_backends](https://github.com/gtk-rs/gtk4-rs/pull/1183)
135164

136165
## 0.5.1
166+
137167
Aaron Erhardt:
138-
- [gtk: Add gnome_43 feature](https://github.com/gtk-rs/gtk4-rs/commit/ddbc370ff50b61e04157bee4cbc5d9e446db498d)
139-
- [gtk: Add gnome_42 feature](https://github.com/gtk-rs/gtk4-rs/commit/05f692d5876a26ba23afc67057b87ed6cd7825e2)
168+
169+
- [gtk: Add gnome_43 feature](https://github.com/gtk-rs/gtk4-rs/commit/ddbc370ff50b61e04157bee4cbc5d9e446db498d)
170+
- [gtk: Add gnome_42 feature](https://github.com/gtk-rs/gtk4-rs/commit/05f692d5876a26ba23afc67057b87ed6cd7825e2)
140171

141172
Bilal Elmoussaoui:
142-
- [gtk: Implement various traits for ResponseType](https://github.com/gtk-rs/gtk4-rs/commit/a270385868be03e50c4e8eb7286846c0de06095e)
143-
- [gtk: Generate new v4.10 APIs](https://github.com/gtk-rs/gtk4-rs/commit/e70c71658479c022606389c26f33b0065d4a2148)
173+
174+
- [gtk: Implement various traits for ResponseType](https://github.com/gtk-rs/gtk4-rs/commit/a270385868be03e50c4e8eb7286846c0de06095e)
175+
- [gtk: Generate new v4.10 APIs](https://github.com/gtk-rs/gtk4-rs/commit/e70c71658479c022606389c26f33b0065d4a2148)
144176

145177
Marc-Andre Lureau:
146-
- [Add gdk4-win32](https://github.com/gtk-rs/gtk4-rs/commit/159db780b3b2d6709c41cbdbe20f4b6088fd574a)
178+
179+
- [Add gdk4-win32](https://github.com/gtk-rs/gtk4-rs/commit/159db780b3b2d6709c41cbdbe20f4b6088fd574a)

gtk4-macros/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ pub fn include_blueprint(input: TokenStream) -> TokenStream {
132132
///
133133
/// The [`CompositeTemplate`] macro can also be used with [Blueprint](https://jwestman.pages.gitlab.gnome.org/blueprint-compiler/)
134134
/// if the feature `blueprint` is enabled.
135+
/// you can use `string` or `file` relative to the project directory but not `resource`
135136
///
136137
/// ```ignore
137138
/// # fn main() {}

0 commit comments

Comments
 (0)