gtk-rs-core
gtk-rs-core copied to clipboard
Rust bindings for GNOME libraries
Use case is something like this ```rust glib::spawn_future_local(clone!( #[weak] button, async move { while let Ok(enable_button) = receiver.recv().await { button.set_sensitive(enable_button); } } )); ``` The intention here clearly is that...
Provide equivalents of: - GLIB_MAJOR_VERSION - GLIB_MINOR_VERSION - GLIB_MICRO_VERSION This could be helpful, for example, to print a debug message if glib_check_version fails.
I would like to create a PollableInputStream from a Rust asynchronous stream of byte chunks. I have not found anything useful in the doc. Is this possible ? Since PollableInputStream...
**Bug description** `XyzImpl` traits don't actually check whether they are implemented on classes that derive / implement the specific class. The Impl traits themselves only provide implementations, so usually they...
Could we implement [IntoFuture](https://doc.rust-lang.org/std/future/trait.IntoFuture.html) for `&IsA` or at least for `&gio::Cancellable`? It's the standardized way to convert something into a future. We could even deprecate `.future()` in the former case....
See https://github.com/gtk-rs/release/issues/196
```rust #[property(get, construct_only, default = 20)] pub comments_per_page: Cell, ``` Gives ``` (lemmings:240427): GLib-GObject-CRITICAL **: 21:27:44.640: validate_pspec_to_install: assertion 'pspec->flags & G_PARAM_WRITABLE' failed thread 'main' panicked at /home/dell/Projects/lemmings/build/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/glib-0.20.1/src/object.rs:2420:13: property 'comments-per-page' of...