Sebastian Dröge
Sebastian Dröge
It would be good to have a ToGlibPtrMove, that consumes the Rust wrapper struct and just returns the C pointer. Without any copying or change of reference count (if possible:...
Needs this change and recent nightly ```diff diff --git a/glib/src/lib.rs b/glib/src/lib.rs index 09327234df6..2f9aa904544 100644 --- a/glib/src/lib.rs +++ b/glib/src/lib.rs @@ -1,3 +1,6 @@ +#![feature(strict_provenance)] +#![deny(fuzzy_provenance_casts)] +#![deny(lossy_provenance_casts)] // Take a look at...
It allows retrieving the application from any thread, not just the main thread (or more general the thread where the application was created). `gio::Application` is not thread-safe, so this is...
…s/return value and automatic `Value` handling ---- CC @jf2048
The main challenge here is to get the following to compile as part of the builder: ```rust pub fn transform_from_meh, T: ToValue, F: Fn(&crate::Binding, S) -> Option + Send +...
We have https://gtk-rs.org/gtk-rs-core/git/docs/glib/struct.BoxedAnyObject.html now but a variant that allows sending to different threads would be useful. As this only differs in the trait bounds and `RefCell` vs `Mutex`, both variants...
``` error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference --> gstreamer/src/miniobject.rs:462:34 | 462 | fn to_value_optional(s: Option) -> $crate::glib::Value {...
We have various functions that take a slice as argument currently. Most of them would convert the slice into a `Vec` or similar before passing to C functions. As such...
When using the `glib_wrapper!` macro for subclasses there is currently no compile-time check for the interfaces/classes that are listed. At runtime it would nonetheless panic in (I hope) all cases...