Mercurial > pidgin
comparison src/connection.c @ 11146:1c5398ccbeb0
[gaim-migrate @ 13217]
Gaim-DBUS signal export works with DBUS >= 0.35
Various gaim API functions available through DBUS
committer: Tailor Script <tailor@pidgin.im>
author | Piotr Zielinski <zielaj> |
---|---|
date | Fri, 22 Jul 2005 19:47:29 +0000 |
parents | 50224ac8184d |
children | ad9a61894d9b |
comparison
equal
deleted
inserted
replaced
11145:dbc518c453f2 | 11146:1c5398ccbeb0 |
---|---|
24 */ | 24 */ |
25 #include "internal.h" | 25 #include "internal.h" |
26 #include "account.h" | 26 #include "account.h" |
27 #include "blist.h" | 27 #include "blist.h" |
28 #include "connection.h" | 28 #include "connection.h" |
29 #include "dbus-maybe.h" | |
29 #include "debug.h" | 30 #include "debug.h" |
30 #include "gaim.h" | 31 #include "gaim.h" |
31 #include "log.h" | 32 #include "log.h" |
32 #include "notify.h" | 33 #include "notify.h" |
33 #include "prefs.h" | 34 #include "prefs.h" |
116 return; | 117 return; |
117 } | 118 } |
118 } | 119 } |
119 | 120 |
120 gc = g_new0(GaimConnection, 1); | 121 gc = g_new0(GaimConnection, 1); |
122 GAIM_DBUS_REGISTER_POINTER(gc, GaimConnection); | |
123 | |
124 | |
121 gc->prpl = prpl; | 125 gc->prpl = prpl; |
122 if ((password != NULL) && (*password != '\0')) | 126 if ((password != NULL) && (*password != '\0')) |
123 gc->password = g_strdup(password); | 127 gc->password = g_strdup(password); |
124 gaim_connection_set_account(gc, account); | 128 gaim_connection_set_account(gc, account); |
125 gaim_connection_set_state(gc, GAIM_CONNECTING); | 129 gaim_connection_set_state(gc, GAIM_CONNECTING); |
228 g_free(gc->display_name); | 232 g_free(gc->display_name); |
229 | 233 |
230 if (gc->disconnect_timeout) | 234 if (gc->disconnect_timeout) |
231 gaim_timeout_remove(gc->disconnect_timeout); | 235 gaim_timeout_remove(gc->disconnect_timeout); |
232 | 236 |
237 GAIM_DBUS_UNREGISTER_POINTER(gc); | |
233 g_free(gc); | 238 g_free(gc); |
234 } | 239 } |
235 | 240 |
236 /* | 241 /* |
237 * d:)->-< | 242 * d:)->-< |