/soc/2013/ankitkv/gobjectification: 9e5a7a09e60e: Moved DBUS poi...

Ankit Vani a at nevitus.org
Wed Jun 26 05:15:52 EDT 2013


Changeset: 9e5a7a09e60e02c774e8b4c3bc12b6ba20546b84
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-26 14:45 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/9e5a7a09e60e

Description:

Moved DBUS pointer registration from account_new to account_init

diffstat:

 libpurple/account.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff --git a/libpurple/account.c b/libpurple/account.c
--- a/libpurple/account.c
+++ b/libpurple/account.c
@@ -2878,6 +2878,8 @@ static void purple_account_init(GTypeIns
 	priv->system_log = NULL;
 
 	priv->privacy_type = PURPLE_ACCOUNT_PRIVACY_ALLOW_ALL;
+
+	PURPLE_DBUS_REGISTER_POINTER(account, PurpleAccount);
 }
 
 /* GObject dispose function */
@@ -3072,7 +3074,6 @@ purple_account_new(const char *username,
 					PROP_USERNAME_S, username,
 					PROP_PROTOCOL_ID_S, protocol_id,
 					NULL);
-	PURPLE_DBUS_REGISTER_POINTER(account, PurpleAccount);
 
 	purple_signal_emit(purple_accounts_get_handle(), "account-created",
 			account);



More information about the Commits mailing list