Sebastian Dröge

Results 1164 comments of Sebastian Dröge

While this sucks indeed, the alternative would be to make the `Eq` / `PartialEq` impls incoherent: Only `gio::File` (and other selected types) have a proper equality function, but if you...

> Do any other gi bindings provide overloads for equality How would that work if GObject doesn't provide a way to overload equality? > To be more consistent with `std`...

Yes but those don't have the complications of inheritance so that's easy.

> Using `weakref.set(&obj)` will now affect not just `weakref` but all of its clones, which is probably surprising. Do we maybe want a `ArcWeakRef` variant that cannot be `set`? Yes...

Note that this implementation is unsound with `panic="unwind"`. If the object is actually still alive, you somehow need to get rid of the weak pointer or some time later the...

This is apparently not too useful because `g_application_run()` and `g_main_loop_run()` are not pushing their main context as the thread default one.

Maybe something like this. It would take the thread-default main context if any, otherwise the global default. And then make sure that the current thread actually owns it.

I guess there is not really any interest in having such a function? Let's close this then?

I got no feedback at all so I assumed nobody actually needed it :) As it's apparently useful to you, do you have suggestions about the name and where to...