ranfdev

Results 47 issues of ranfdev

## Motivation #494 adds a way to declare properties on the private, implementation struct. In the future, we also want to add signals declaration using macros. It would be nice...

glib

The implementation is a mess... I will clean it up. Take a look at the newly added test case to see how it can be used. I'm interested in comments...

Rust has great support for iterators, so I thought... Why not use them for event handling? Also, the current callback situation is a pain when dealing with async methods, because...

enhancement
glib

The [`Borrow`](https://doc.rust-lang.org/std/borrow/trait.Borrow.html) trait is more restrictive than `AsRef`, but since `PartialOrd`, `Hash`, `PartialEq`, (...), are all implemented on the object pointer, it's safe, and I believe correct, to implement `Borrow`....

An object subclass already implements `AsRef`. Could it also implement `Borrow`? The Borrow trait has different requirements and I don't know if this is possible. From the rust doc: >...

enhancement

Let's take `Vec2` as an example: most operations are similar to `fn op(&self, &Vec2) -> Vec2`. But If I have an array of vectors (which is mostly always what I...

enhancement
graphene

When calling `ObjectImpl::constructed(&self, obj)` the user should remember to call `self.parent_constructed(obj)`. It's easy to forget it. I propose adding a parameter: ```rust fn constructed ()>(&self, obj, parent_constructed: F) ``` so...

enhancement

**Bug description** As said, when trying to use `#[object_subclass]` without `glib` in scope: ``` failed to resolve: use of undeclared crate or module `glib` use of undeclared crate or module...

bug
glib-macros

Url: https://lobste.rs/recent.json. A 500 status is unexpected, because `/hottest.json` correctly returns json data, status 200. `/recent.jsoaasjh` (a non existent route) correctly returns status 404

bug
good first issue

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