Skip to content

Commit 1101b52

Browse files
improve release post
1 parent 9bd1e6d commit 1101b52

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

_posts/2019-02-21-new-release.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,21 @@ It's time for a new release! Main adds/changes this time are:
1515
* We improved the channels handling in `GLib`.
1616
* The whole new `GString` type!
1717
* The minimum Rust version supported is now the `1.31`.
18+
* The minimum version of all libraries has been changed to GNOME `3.14`.
19+
* The maximum version of all libraries has been upgraded to GNOME `3.30`.
20+
* Added subclassing support in GLib.
1821
* Even more bindings generated.
1922

2023
Let's see those in details.
2124

2225
#### Atk
2326

24-
The Atk crate is about accessibility. We thought it was a miss not having it considering how important accessibility is, now it's fixed. You can see more information directly on the `Atk` repository: https://github.com/gtk-rs/atk
27+
The Atk crate is about accessibility. We thought it was a miss not having it considering how important accessibility is. Now it's fixed! You can find more information directly on the [`Atk` repository](https://github.com/gtk-rs/atk) or in the [accessibility example](https://github.com/gtk-rs/examples/blob/master/src/bin/accessibility.rs).
2528

2629
#### Callbacks?
2730

31+
We already implemented by hand a lot of these functions but the big new thing in here is that they're now automatically generated.
32+
2833
To present this, let's use the `foreach` method of `TreeModel`:
2934

3035
The C version looks like this:
@@ -87,13 +92,17 @@ receiver.attach(None, move |msg| {
8792

8893
#### `GString` type?
8994

90-
This type has been created in order to prevent some useless copies to improve performances. For example, if you want to get a button label, you don't ownership over it, you just "get" it. Before the `GString` type, we'd clone the returned string and gave it back to the user. Now, we just hold a temporary reference over it, no more copy!
95+
This type has been created in order to prevent some useless copies to improve performances. It's used in case a function returns a `String` while fully transferring it. In such cases, we now just wrap it instead of cloning it.
9196

9297
This is part of our performance focus. More to come in the next release!
9398

9499
#### Minimum Rust version supported
95100

96-
We moved it to `1.31.0` mainly because imports handling is much easier starting this version.
101+
We moved it to `1.31.0` mainly because imports handling is much easier starting this version. We still need to update macros though (an issue about it is already [open](https://github.com/gtk-rs/glib/issues/420)).
102+
103+
#### subclassing support in GLib
104+
105+
This is a strongly asked feature and we now have it in GLib. A lot of work remains to be done, but it's mostly polishing. At its current state, it can be used already. Take a look at the [listbox_model](https://github.com/gtk-rs/examples/blob/master/src/bin/listbox_model.rs) if you want to see how it works.
97106

98107
#### Even more bindings generated
99108

@@ -107,7 +116,7 @@ And again: thanks **a lot** to all of our contributors! This project lives thank
107116

108117
### Changes
109118

110-
For the interested ones, here is the list of the (major) changes:
119+
For the interested ones, here is the list of the merged pull requests:
111120

112121
[sys](https://github.com/gtk-rs/sys):
113122

0 commit comments

Comments
 (0)