Mercurial > pidgin
comparison src/dbus-server.c @ 14122:dabbcb9b013d
[gaim-migrate @ 16759]
This initializes threads for glib and dbus, because under some
circumstances multithreaded libraries are causing dbus badness
(namely, gnome-vfs). This fix doesn't really belong in Gaim, but in
the interest of expedience (we don't want to wait for upstream
libraries to get their initializations all worked around to make
things safe) the fix goes here. Note that all Gaim frontends will
have to initialize glib threads if other threaded libraries which
interact with glib or dbus or what-have-you come into play.
committer: Tailor Script <tailor@pidgin.im>
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Mon, 14 Aug 2006 21:46:17 +0000 |
| parents | f7cfaee79982 |
| children | 38270d4e29c6 |
comparison
equal
deleted
inserted
replaced
| 14121:8af7f3a7015f | 14122:dabbcb9b013d |
|---|---|
| 755 } | 755 } |
| 756 | 756 |
| 757 void | 757 void |
| 758 gaim_dbus_init(void) | 758 gaim_dbus_init(void) |
| 759 { | 759 { |
| 760 if (g_thread_supported()) | |
| 761 dbus_g_thread_init(); | |
| 762 | |
| 760 gaim_dbus_init_ids(); | 763 gaim_dbus_init_ids(); |
| 761 | 764 |
| 762 g_free(init_error); | 765 g_free(init_error); |
| 763 init_error = NULL; | 766 init_error = NULL; |
| 764 gaim_dbus_dispatch_init(); | 767 gaim_dbus_dispatch_init(); |
