Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0c12282

Browse files
committedJul 17, 2024·
Add new gtk-rs-core 0.20 / gtk4-rs 0.9 release
1 parent f1fa9a4 commit 0c12282

File tree

1 file changed

+187
-0
lines changed

1 file changed

+187
-0
lines changed
 

‎_posts/2024-07-17-new-release.md

+187
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
---
2+
layout: post
3+
author: gtk-rs developers
4+
title: New Release
5+
categories: [front, crates]
6+
date: 2024-07-17 09:00:00 +0000
7+
---
8+
9+
gtk4-rs `0.9` and gtk-rs-core `0.20` were just freshly released, just in time
10+
for also being included in the GNOME 47 release.
11+
12+
This release is again relatively small, mostly providing bindings to new APIs
13+
and improvements to the `glib::clone!` and `glib::closure!` macros to work
14+
better with `cargo fmt` and rust-analyzer.
15+
16+
### gtk-rs-core
17+
18+
#### New syntax for `glib::clone!` and `glib::closure!`
19+
20+
blablablabla
21+
22+
#### TBD
23+
24+
blablablabla
25+
26+
### gtk4-rs
27+
28+
#### TBD
29+
30+
blablablabla
31+
32+
### Changes
33+
34+
For the interested ones, here is the list of the merged pull requests:
35+
36+
[gtk4-rs](https://github.com/gtk-rs/gtk4-rs):
37+
38+
* [Regenerate with new gir/gir-files](https://github.com/gtk-rs/gtk4-rs/pull/1792)
39+
* [Update to new clone! macro syntax](https://github.com/gtk-rs/gtk4-rs/pull/1773)
40+
* [book: Fix typo](https://github.com/gtk-rs/gtk4-rs/pull/1769)
41+
* [Remove unnecessary upcast from examples/squeezer\_bin/main.rs](https://github.com/gtk-rs/gtk4-rs/pull/1763)
42+
* [typos: Ignore versions.txt file](https://github.com/gtk-rs/gtk4-rs/pull/1762)
43+
* [examples/squeezer\_bin: Mark properties as writable](https://github.com/gtk-rs/gtk4-rs/pull/1761)
44+
* [Fix `SqueezerBin::size\_allocate()` in example](https://github.com/gtk-rs/gtk4-rs/pull/1760)
45+
* [Regen bindings with new gir {g,s}etter annotations](https://github.com/gtk-rs/gtk4-rs/pull/1759)
46+
* [Stop renaming ffi crates](https://github.com/gtk-rs/gtk4-rs/pull/1758)
47+
* [custom\_orientable: Fix interface property override](https://github.com/gtk-rs/gtk4-rs/pull/1755)
48+
* [gtk: Implement Downgrade for TemplateChild<T>](https://github.com/gtk-rs/gtk4-rs/pull/1750)
49+
* [Update list\_widgets.md](https://github.com/gtk-rs/gtk4-rs/pull/1742)
50+
* [examples: Support GL >= 3.1 and GLES >= 3.0 in the glium example](https://github.com/gtk-rs/gtk4-rs/pull/1733)
51+
* [Fix nightly clippy warnings](https://github.com/gtk-rs/gtk4-rs/pull/1730)
52+
* [Update link for Cogitri/Health to World/Health](https://github.com/gtk-rs/gtk4-rs/pull/1725)
53+
* [Simplify reading file contents to a String](https://github.com/gtk-rs/gtk4-rs/pull/1719)
54+
* [Update dependencies](https://github.com/gtk-rs/gtk4-rs/pull/1717)
55+
* [macros: Drop anyhow dependency](https://github.com/gtk-rs/gtk4-rs/pull/1708)
56+
* [Fix typo in todo\_1.md](https://github.com/gtk-rs/gtk4-rs/pull/1707)
57+
* [gtk4: Manually implement `GraphicsOffload` constructor for now](https://github.com/gtk-rs/gtk4-rs/pull/1705)
58+
* [gtk4: Require GDK 4.14 when enabling the `v4\_14` feature](https://github.com/gtk-rs/gtk4-rs/pull/1704)
59+
* [macros: Drop macro-proc-error and upgrade syn to 2.0](https://github.com/gtk-rs/gtk4-rs/pull/1688)
60+
* [dockerfile: Update libadwaita to 1.5](https://github.com/gtk-rs/gtk4-rs/pull/1687)
61+
* [book: Update dependencies](https://github.com/gtk-rs/gtk4-rs/pull/1686)
62+
* [Regenerate with latest gir](https://github.com/gtk-rs/gtk4-rs/pull/1678)
63+
* [docs: fix `Path` setting on windows](https://github.com/gtk-rs/gtk4-rs/pull/1675)
64+
* [Correctly handle `NULL` `GError\*\*` out parameters](https://github.com/gtk-rs/gtk4-rs/pull/1672)
65+
* [Fix nightly clippy warnings](https://github.com/gtk-rs/gtk4-rs/pull/1670)
66+
* [Replace simple `impl Debug` with derived `Debug` in tokio example](https://github.com/gtk-rs/gtk4-rs/pull/1663)
67+
* [Simplify library configuration step for Windows](https://github.com/gtk-rs/gtk4-rs/pull/1644)
68+
* [Regenerate with latest gir-files](https://github.com/gtk-rs/gtk4-rs/pull/1637)
69+
* [cargo-deny: Remove libloading dependencies](https://github.com/gtk-rs/gtk4-rs/pull/1633)
70+
71+
[gtk-rs-core](https://github.com/gtk-rs/gtk-rs-core):
72+
73+
* [ci: Fix docs release tag handling](https://github.com/gtk-rs/gtk-rs-core/pull/1457)
74+
* [docs: Run on our container image](https://github.com/gtk-rs/gtk-rs-core/pull/1455)
75+
* [gio: Add a method to get a stream of incoming connections to SocketListener](https://github.com/gtk-rs/gtk-rs-core/pull/1454)
76+
* [Update gir files](https://github.com/gtk-rs/gtk-rs-core/pull/1453)
77+
* [glib: Add support for registering GTypes with name conflicts](https://github.com/gtk-rs/gtk-rs-core/pull/1451)
78+
* [glib: Make `TypeData` struct fields private](https://github.com/gtk-rs/gtk-rs-core/pull/1449)
79+
* [Update gir files & regenerate](https://github.com/gtk-rs/gtk-rs-core/pull/1448)
80+
* [glib-macros: Don't produce unnecessary braces in `clone!(async move {…](https://github.com/gtk-rs/gtk-rs-core/pull/1443)
81+
* [Update to system-deps 7](https://github.com/gtk-rs/gtk-rs-core/pull/1440)
82+
* [glib-macros: Fix unit return in `closure!()` macro](https://github.com/gtk-rs/gtk-rs-core/pull/1438)
83+
* [strv: add From implementation from a String array](https://github.com/gtk-rs/gtk-rs-core/pull/1432)
84+
* [Derive TransparentPtrType trait for Boxed](https://github.com/gtk-rs/gtk-rs-core/pull/1431)
85+
* [gio: Properly export Win32InputStream / Win32OutputStream traits](https://github.com/gtk-rs/gtk-rs-core/pull/1429)
86+
* [ci: bump gvsbuild](https://github.com/gtk-rs/gtk-rs-core/pull/1427)
87+
* [Update `clone!` and `closure!` macro to new syntax](https://github.com/gtk-rs/gtk-rs-core/pull/1424)
88+
* [Stop renaming ffi crates](https://github.com/gtk-rs/gtk-rs-core/pull/1423)
89+
* [gio: remove Send + Sync requirements from DBusConnection::register\_ob…](https://github.com/gtk-rs/gtk-rs-core/pull/1422)
90+
* [Fix various nightly clippy warnings](https://github.com/gtk-rs/gtk-rs-core/pull/1421)
91+
* [Regenerate with latest gir/gir-files](https://github.com/gtk-rs/gtk-rs-core/pull/1420)
92+
* [spell fix](https://github.com/gtk-rs/gtk-rs-core/pull/1419)
93+
* [gio: make DBusConnection::register\_object take optional clousures](https://github.com/gtk-rs/gtk-rs-core/pull/1417)
94+
* [glib: Add unsafe `Value::into\_send\_value()`](https://github.com/gtk-rs/gtk-rs-core/pull/1413)
95+
* [glib: Improve `ValueArray` API, add tests and assertions for invalid …](https://github.com/gtk-rs/gtk-rs-core/pull/1411)
96+
* [glib: Fix `MatchInfo::next()` handling of returning `FALSE`](https://github.com/gtk-rs/gtk-rs-core/pull/1410)
97+
* [glib/functions: add compute\_checksum\_for\_string](https://github.com/gtk-rs/gtk-rs-core/pull/1406)
98+
* [glib: Add bindings for `g\_value\_set\_static\_string()`](https://github.com/gtk-rs/gtk-rs-core/pull/1400)
99+
* [docs: Fix broken links / cleanup README](https://github.com/gtk-rs/gtk-rs-core/pull/1395)
100+
* [Fix clippy warnings](https://github.com/gtk-rs/gtk-rs-core/pull/1393)
101+
* [glib: Implement Sync for ThreadGuard](https://github.com/gtk-rs/gtk-rs-core/pull/1388)
102+
* [glib: Only implement Send on JoinHandle if the result is Send](https://github.com/gtk-rs/gtk-rs-core/pull/1387)
103+
* [glib: Decouple ObjectInterface impl from interface class struct](https://github.com/gtk-rs/gtk-rs-core/pull/1384)
104+
* [glib: Add missing Send bound to the output type of the `spawn\_from\_within()` future](https://github.com/gtk-rs/gtk-rs-core/pull/1383)
105+
* [glib-macros: Refactor parsing code of object\_subclass/object\_interface](https://github.com/gtk-rs/gtk-rs-core/pull/1379)
106+
* [examples: Add example for custom class structs and virtual methods](https://github.com/gtk-rs/gtk-rs-core/pull/1378)
107+
* [ObjectBuilder: add property\_if(), property\_if\_some(), property\_from\_iter() ...](https://github.com/gtk-rs/gtk-rs-core/pull/1377)
108+
* [glib: Don't use `g\_object\_list\_properties()` for setting properties](https://github.com/gtk-rs/gtk-rs-core/pull/1376)
109+
* [glib: Use a reference to a pointer of correct mutability for from\_gli…](https://github.com/gtk-rs/gtk-rs-core/pull/1375)
110+
* [glib: Re-add and rename manual Win32 API additions](https://github.com/gtk-rs/gtk-rs-core/pull/1372)
111+
* [glib-macros/properties: Allow structs with no properties](https://github.com/gtk-rs/gtk-rs-core/pull/1370)
112+
* [glib::wrapper: Add docs for impls generated by the wrapper macro](https://github.com/gtk-rs/gtk-rs-core/pull/1369)
113+
* [ci: Enable glib-sys / gobject-sys tests](https://github.com/gtk-rs/gtk-rs-core/pull/1368)
114+
* [glib-sys: Add missing includes in `manual.h`](https://github.com/gtk-rs/gtk-rs-core/pull/1361)
115+
* [glib-sys: fix struct size mismatches](https://github.com/gtk-rs/gtk-rs-core/pull/1360)
116+
* [glib: Freeze property notifications while setting multiple properties](https://github.com/gtk-rs/gtk-rs-core/pull/1355)
117+
* [glib-macros: Improve error message when `Properties` struct doesn't have at least one `#\[property(…)\]`](https://github.com/gtk-rs/gtk-rs-core/pull/1352)
118+
* [Update gir / gir-files and update for `time\_t`](https://github.com/gtk-rs/gtk-rs-core/pull/1349)
119+
* [Fix nightly clippy warnings](https://github.com/gtk-rs/gtk-rs-core/pull/1348)
120+
* [docs: `construct` attribute for `glib::Properties`](https://github.com/gtk-rs/gtk-rs-core/pull/1344)
121+
* [glib: fix UB in VariantStrIter::impl\_get](https://github.com/gtk-rs/gtk-rs-core/pull/1343)
122+
* [Fix glib compiletest expected output for Rust 1.77](https://github.com/gtk-rs/gtk-rs-core/pull/1342)
123+
* [glib: Don't misuse `slice::get\_unchecked()`](https://github.com/gtk-rs/gtk-rs-core/pull/1337)
124+
* [gio: correctly free argument list items](https://github.com/gtk-rs/gtk-rs-core/pull/1331)
125+
* [glib: Optimize string collation bindings a bit](https://github.com/gtk-rs/gtk-rs-core/pull/1329)
126+
* [glib: Drop the main context future return value sender on finalize](https://github.com/gtk-rs/gtk-rs-core/pull/1328)
127+
* [pango: add some missing AttrInt constructors.](https://github.com/gtk-rs/gtk-rs-core/pull/1325)
128+
* [Regenerate with latest gir files](https://github.com/gtk-rs/gtk-rs-core/pull/1324)
129+
* [glib: Embed docs for ParamSpec types](https://github.com/gtk-rs/gtk-rs-core/pull/1323)
130+
* [glib: Requires Upgrade on Downgrade::Weak type](https://github.com/gtk-rs/gtk-rs-core/pull/1321)
131+
* [macros: allow to specify #\[default\] for glib::flags](https://github.com/gtk-rs/gtk-rs-core/pull/1316)
132+
* [Update Cargo.lock](https://github.com/gtk-rs/gtk-rs-core/pull/1313)
133+
* [glib: Add `Quark::from\_static\_str()`](https://github.com/gtk-rs/gtk-rs-core/pull/1312)
134+
* [docs: Move metadata back to packages](https://github.com/gtk-rs/gtk-rs-core/pull/1311)
135+
* [cairo: Fix version of the v1\_18 feature](https://github.com/gtk-rs/gtk-rs-core/pull/1310)
136+
* [glib: Fix expected error output of compiletests for 1.76](https://github.com/gtk-rs/gtk-rs-core/pull/1308)
137+
* [Document values of Continue and Break](https://github.com/gtk-rs/gtk-rs-core/pull/1304)
138+
139+
All this was possible thanks to the [gtk-rs/gir](https://github.com/gtk-rs/gir) project as well:
140+
141+
* [Minor cleanup to use `is\_some\_and(...)` instead of `map\_or(false, ...)`](https://github.com/gtk-rs/gir/pull/1584)
142+
* [Update to system-deps 7](https://github.com/gtk-rs/gir/pull/1583)
143+
* [More docs improvements](https://github.com/gtk-rs/gir/pull/1576)
144+
* [codegen: Handle mangled types names](https://github.com/gtk-rs/gir/pull/1575)
145+
* [members: drop useless alias config](https://github.com/gtk-rs/gir/pull/1574)
146+
* [Various properties fixes](https://github.com/gtk-rs/gir/pull/1573)
147+
* [codegen: Avoid double alias on badly annotated fn](https://github.com/gtk-rs/gir/pull/1572)
148+
* [Use getter and setter annotations](https://github.com/gtk-rs/gir/pull/1571)
149+
* [Support finish-func annotation](https://github.com/gtk-rs/gir/pull/1570)
150+
* [codegen: Stop renaming ffi crate](https://github.com/gtk-rs/gir/pull/1569)
151+
* [Use final annotation](https://github.com/gtk-rs/gir/pull/1568)
152+
* [Codegen clippy fixes](https://github.com/gtk-rs/gir/pull/1566)
153+
* [Add support for `libc::time\_t` and related types](https://github.com/gtk-rs/gir/pull/1562)
154+
* [Revert Automatically assume that win32\_ and unix\_ should use the related cfg](https://github.com/gtk-rs/gir/pull/1547)
155+
* [Correctly generate cfg condition for ABI tests](https://github.com/gtk-rs/gir/pull/1546)
156+
* [Generate cfgs with `update\_cfgs` on enums as well](https://github.com/gtk-rs/gir/pull/1545)
157+
158+
Thanks to all of our contributors for their (awesome!) work on this release:
159+
160+
* [@A6GibKm](https://github.com/A6GibKm)
161+
* [@alatiera](https://github.com/alatiera)
162+
* [@amyspark](https://github.com/amyspark)
163+
* [@bilelmoussaoui](https://github.com/bilelmoussaoui)
164+
* [@carlosmn](https://github.com/carlosmn)
165+
* [@DaKnig](https://github.com/DaKnig)
166+
* [@decathorpe](https://github.com/decathorpe)
167+
* [@ellnix](https://github.com/ellnix)
168+
* [@enaut](https://github.com/enaut)
169+
* [@exi](https://github.com/exi)
170+
* [@felinira](https://github.com/felinira)
171+
* [@fengalin](https://github.com/fengalin)
172+
* [@GuillaumeGomez](https://github.com/GuillaumeGomez)
173+
* [@Hofer-Julian](https://github.com/Hofer-Julian)
174+
* [@liushuyu](https://github.com/liushuyu)
175+
* [@marcinjahn](https://github.com/marcinjahn)
176+
* [@misson20000](https://github.com/misson20000)
177+
* [@mjgarton](https://github.com/mjgarton)
178+
* [@mokurin000](https://github.com/mokurin000)
179+
* [@mtilda](https://github.com/mtilda)
180+
* [@nazar-pc](https://github.com/nazar-pc)
181+
* [@pbor](https://github.com/pbor)
182+
* [@pranjalkole](https://github.com/pranjalkole)
183+
* [@sdroege](https://github.com/sdroege)
184+
* [@vhakulinen](https://github.com/vhakulinen)
185+
* [@woelfman](https://github.com/woelfman)
186+
* [@ystreet](https://github.com/ystreet)
187+
* [@zecakeh](https://github.com/zecakeh)

0 commit comments

Comments
 (0)
Please sign in to comment.