-
-
Notifications
You must be signed in to change notification settings - Fork 62
Value::get: return a Result to account for type mismatch... #513
Conversation
... and introduce `get_some` for when `Some` value is expected.
... with `TypedValue::get_some` (restricted to `FromValue` implementers).
... plus adjust unit and documentation tests.
Not ready yet! I still hope to find a good name for |
Align to usual conventions for `Error`s in the standard library.
I think we should keep I am worried about the CI error on Windows 32bits: it seems like this platform doesn't like |
Probably related to using the mingw toolchain. Not sure what to do about that, the Windows CI is generally borderline broken (see also GTK failing). |
Maybe blacklist that test on Windows for the time being. |
There also error on installing mingw-w64-i686-glib2, but it was not passed build too: |
They break CI on this plateform: ``` fatal runtime error: failed to initiate panic, error 5 ```
I'm not sure if there is a better way to do this: I added a
Yup! It seems kind of broken ATM. |
CI on Windows 32bits is now aligned with the other platforms. I think the next step would be to merge gtk-rs/gir#825 so that I can regen the depending crates. |
This PR here looks good to me in any case, thanks! If you're interested you could also update all the |
Ok, I'll add it to my todo list :) But I had other |
No problem :) |
As result code looks like this:
Maybe we try include
|
The For types that don't allow storing a |
Yes, with my proposal most of code will be use |
gtk-rs/examples#257 all green! I think we can merge this one and I'll proceed with the direct dependents ( |
All good for me, but needs @GuillaumeGomez to merge all the trivial regen PRs :) |
... and introduce
get_some
for types implementingFromValue
.First commit is for non-regression validation.
I'll update the other crates (gtk-rs & gstreamer-rs) when this is merged.
Fixes #510