/soc/2013/ankitkv/gobjectification: aa65e5a9f2ef: Replace PURPLE...

Ankit Vani a at nevitus.org
Wed Jul 17 06:57:22 EDT 2013


Changeset: aa65e5a9f2effc101709c76a4edc10435b71a936
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-07-17 16:26 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/aa65e5a9f2ef

Description:

Replace PURPLE_TYPE_BUDDY_LIST with PURPLE_TYPE_CONTACT where it was intended.

diffstat:

 libpurple/plugins/perl/perl-common.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (22 lines):

diff --git a/libpurple/plugins/perl/perl-common.c b/libpurple/plugins/perl/perl-common.c
--- a/libpurple/plugins/perl/perl-common.c
+++ b/libpurple/plugins/perl/perl-common.c
@@ -392,7 +392,6 @@ purple_perl_data_from_sv(GType type, SV 
 		case G_TYPE_UINT64:  return (void *)SvUV(sv);
 		case G_TYPE_STRING:  return g_strdup(SvPVutf8_nolen(sv));
 		case G_TYPE_POINTER: return (void *)SvIV(sv);
-		case G_TYPE_BOXED:   return (void *)SvIV(sv);
 	}
 
 	return NULL;
@@ -405,8 +404,8 @@ purple_perl_sv_from_purple_type(GType ty
 
 	if (type == PURPLE_TYPE_ACCOUNT)
 		stash = "Purple::Account";
-	else if (type == PURPLE_TYPE_BUDDY_LIST)
-		stash = "Purple::BuddyList";
+	else if (type == PURPLE_TYPE_CONTACT)
+		stash = "Purple::BuddyList::Contact";
 	else if (type == PURPLE_TYPE_BUDDY)
 		stash = "Purple::BuddyList::Buddy";
 	else if (type == PURPLE_TYPE_GROUP)



More information about the Commits mailing list