2 import _dbus_glib_bindings
4 def _setup_with_g_main(conn
):
5 _dbus_glib_bindings
.setup_with_g_main(conn
._connection
)
7 _dbus_gthreads_initialized
= False
9 global _dbus_gthreads_initialized
10 if not _dbus_gthreads_initialized
:
11 _dbus_glib_bindings
.gthreads_init()
12 _dbus_gthreads_initialized
= True
17 setattr(dbus
, "_dbus_mainloop_setup_function", _setup_with_g_main
)