Mercurial > pidgin.yaz
comparison src/core.c @ 11171:ebb02ea3c789
[gaim-migrate @ 13272]
Moved DBUS init call from gtkmain.c to core.c
Reimplemented DBUS bindings mechamism to use low-level GLib bindings
as described in my last blog entry. This way plugins can add new DBUS
methods on the fly. Also wrote an example plugin that demonstrate how
to do it.
committer: Tailor Script <tailor@pidgin.im>
author | Piotr Zielinski <zielaj> |
---|---|
date | Sat, 30 Jul 2005 00:23:21 +0000 |
parents | 50224ac8184d |
children | bb0d7b719af2 |
comparison
equal
deleted
inserted
replaced
11170:0e9e2b923d09 | 11171:ebb02ea3c789 |
---|---|
38 #include "signals.h" | 38 #include "signals.h" |
39 #include "sslconn.h" | 39 #include "sslconn.h" |
40 #include "status.h" | 40 #include "status.h" |
41 #include "sound.h" | 41 #include "sound.h" |
42 | 42 |
43 #ifdef HAVE_DBUS | |
44 # include "dbus-server.h" | |
45 #endif | |
46 | |
47 | |
43 struct GaimCore | 48 struct GaimCore |
44 { | 49 { |
45 char *ui; | 50 char *ui; |
46 | 51 |
47 void *reserved; | 52 void *reserved; |
86 if (ops->debug_ui_init != NULL) | 91 if (ops->debug_ui_init != NULL) |
87 ops->debug_ui_init(); | 92 ops->debug_ui_init(); |
88 } | 93 } |
89 | 94 |
90 gaim_debug_register_category("main"); | 95 gaim_debug_register_category("main"); |
96 | |
97 #ifdef HAVE_DBUS | |
98 gaim_dbus_init(); | |
99 #endif | |
91 | 100 |
92 /* Initialize all static protocols. */ | 101 /* Initialize all static protocols. */ |
93 static_proto_init(); | 102 static_proto_init(); |
94 | 103 |
95 /* Since plugins get probed so early we should probably initialize their | 104 /* Since plugins get probed so early we should probably initialize their |