You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2019-02-21-new-release.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,16 +15,21 @@ It's time for a new release! Main adds/changes this time are:
15
15
* We improved the channels handling in `GLib`.
16
16
* The whole new `GString` type!
17
17
* 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.
18
21
* Even more bindings generated.
19
22
20
23
Let's see those in details.
21
24
22
25
#### Atk
23
26
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).
25
28
26
29
#### Callbacks?
27
30
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
+
28
33
To present this, let's use the `foreach` method of `TreeModel`:
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.
91
96
92
97
This is part of our performance focus. More to come in the next release!
93
98
94
99
#### Minimum Rust version supported
95
100
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.
97
106
98
107
#### Even more bindings generated
99
108
@@ -107,7 +116,7 @@ And again: thanks **a lot** to all of our contributors! This project lives thank
107
116
108
117
### Changes
109
118
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:
0 commit comments