gtk-rs-core icon indicating copy to clipboard operation
gtk-rs-core copied to clipboard

Rust bindings for GNOME libraries

Results 207 gtk-rs-core issues
Sort by recently updated
recently updated
newest added

I propose adding a `use_cloned!` macro with the following semantics: ```rust button.connect_clicked(use_cloned![move |_btn| { weak!(label, panic).set_label("clicked the button"); strong!(label2).set_label("I'm strong"); }]); ``` **Benefits:** - **Formatting from rustfmt** I found out...

enhancement

Fixes https://github.com/gtk-rs/gtk-rs-core/issues/766 ---- Depends on https://github.com/gtk-rs/gir/pull/1380

This would be consistent with how `set_property()` and similar API work nowadays. 99% of all cases are just unwrapping on failure anyway as it's a programmer error and not a...

good first issue
glib

It's redundant because you can always get `Self::Type` via `self.instance()`. It would reduce quite a bit of noise and also reduces some confusion, but OTOH makes it less visible how...

good first issue
glib

Convenient for `unwrap_or_default()`

This will probably need changes in gtk/gstreamer too

`std` doesn't have almost anything of that, and the crate implementing all that seems is using icu, which is huge and annoying to build. The utf8 APIs should probably take...

enhancement
glib

It's `.minimum()` and `.maximum()` but `.default_value()` and not `.min_value()`/`.max_value()` and also not `.default()`. It's also `.read_only()` but `.readwrite()`, notice inconsistency in underscore usage. cc @bilelmoussaoui

glib

```rust trait Mytrait: Downgrade { fn mushroom(&self) { let weak = self.downgrade(); let this = weak.upgrade().unwrap(); this.snake(); } fn snake(&self) {} } ``` fails with: ``` error[E0599]: no method named...

glib

Depends on https://github.com/gtk-rs/gir/pull/1551 Fixes https://github.com/gtk-rs/gtk-rs-core/issues/1257