gtk-rs / gtk-rs-core

Rust bindings for GNOME libraries
https://gtk-rs.org/gtk-rs-core
MIT License
279 stars 112 forks source link

gio: remove Send + Sync requirements from DBusConnection::register_ob… #1422

Closed pbor closed 4 months ago

pbor commented 4 months ago

…ject

glib documentation says: "Calls to functions in vtable (and user_data_free_func ) will happen in the thread-default main context of the thread you are calling this method from."

pbor commented 4 months ago

There are other places, eg g_bus_own_name_with_closures but there the documentation is not explicit about where they run

sdroege commented 4 months ago

All GDbus callbacks should run from the main thread I think? Can you check that and update it all at once so we don't have to do it one by one?

pbor commented 4 months ago

Added the other functions.

This fixes https://github.com/gtk-rs/gtk-rs-core/issues/263