/soc/2013/ankitkv/gobjectification: 1379416703af: Removed purple...

Ankit Vani a at nevitus.org
Wed Jun 19 10:58:21 EDT 2013


Changeset: 1379416703af4460d6dfc9460378053f2686ef6a
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-19 20:09 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/1379416703af

Description:

Removed purple_account_destroy function declaration, use g_object_unref() instead.

diffstat:

 libpurple/account.h                      |  7 -------
 libpurple/accounts.c                     |  4 ++--
 libpurple/plugins/perl/common/Account.xs |  4 ----
 libpurple/purple.h.in                    |  1 -
 4 files changed, 2 insertions(+), 14 deletions(-)

diffs (63 lines):

diff --git a/libpurple/account.h b/libpurple/account.h
--- a/libpurple/account.h
+++ b/libpurple/account.h
@@ -138,13 +138,6 @@ GType purple_account_get_type(void);
 PurpleAccount *purple_account_new(const char *username, const char *protocol_id);
 
 /**
- * Destroys an account.
- *
- * @param account The account to destroy.
- */
-void purple_account_destroy(PurpleAccount *account);
-
-/**
  * Connects to an account.
  *
  * @param account The account to connect to.
diff --git a/libpurple/accounts.c b/libpurple/accounts.c
--- a/libpurple/accounts.c
+++ b/libpurple/accounts.c
@@ -637,7 +637,7 @@ purple_accounts_remove(PurpleAccount *ac
 static void
 purple_accounts_delete_set(PurpleAccount *account, GError *error, gpointer data)
 {
-	purple_account_destroy(account);
+	g_object_unref(G_OBJECT(account));
 }
 
 void
@@ -1040,7 +1040,7 @@ purple_accounts_uninit(void)
 	}
 
 	for (; accounts; accounts = g_list_delete_link(accounts, accounts))
-		purple_account_destroy(accounts->data);
+		g_object_unref(G_OBJECT(accounts->data));
 
 	purple_signals_disconnect_by_handle(handle);
 	purple_signals_unregister_by_instance(handle);
diff --git a/libpurple/plugins/perl/common/Account.xs b/libpurple/plugins/perl/common/Account.xs
--- a/libpurple/plugins/perl/common/Account.xs
+++ b/libpurple/plugins/perl/common/Account.xs
@@ -16,10 +16,6 @@ purple_account_new(class, username, prot
     username, protocol_id
 
 void
-purple_account_destroy(account)
-    Purple::Account account
-
-void
 purple_account_connect(account)
     Purple::Account account
 
diff --git a/libpurple/purple.h.in b/libpurple/purple.h.in
--- a/libpurple/purple.h.in
+++ b/libpurple/purple.h.in
@@ -75,7 +75,6 @@
 #include <pluginpref.h>
 #include <pounce.h>
 #include <prefs.h>
-#include <privacy.h>
 #include <proxy.h>
 #include <prpl.h>
 #include <request.h>



More information about the Commits mailing list