diff src/account.c @ 11067:2eca9ed49469

[gaim-migrate @ 13048] Modified configure.ac so that it rejects dbus builds with the dbus library older than 0.34 Added a simple object registration system to the dbus implementation so that it is possible to query object properties remotely (eg. give me property "name" of buddy with id = 5). committer: Tailor Script <tailor@pidgin.im>
author Piotr Zielinski <zielaj>
date Thu, 07 Jul 2005 15:43:48 +0000
parents da05145441ca
children 812b285aeccd
line wrap: on
line diff
--- a/src/account.c	Thu Jul 07 15:43:05 2005 +0000
+++ b/src/account.c	Thu Jul 07 15:43:48 2005 +0000
@@ -25,6 +25,7 @@
 #include "internal.h"
 #include "account.h"
 #include "core.h"
+#include "dbus-maybe.h"
 #include "debug.h"
 #include "notify.h"
 #include "pounce.h"
@@ -701,6 +702,7 @@
 
 	gaim_presence_set_status_active(account->presence, "offline", TRUE);
 
+	GAIM_DBUS_REGISTER_POINTER(account, DBUS_POINTER_ACCOUNT);
 	return account;
 }
 
@@ -742,6 +744,7 @@
 	if(account->system_log)
 		gaim_log_free(account->system_log);
 
+	GAIM_DBUS_UNREGISTER_POINTER(account);
 	g_free(account);
 }