gobjectification: 0d58f17b: Fix qq compile.

qulogic at pidgin.im qulogic at pidgin.im
Tue Jun 9 01:01:03 EDT 2009


-----------------------------------------------------------------
Revision: 0d58f17be00ea8309b9efceae7f364eb9f60b93f
Ancestor: 8c00fe0eedb29132a60bbe7fb553ea9f19cf3433
Author: qulogic at pidgin.im
Date: 2009-06-09T02:34:27
Branch: im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/0d58f17be00ea8309b9efceae7f364eb9f60b93f

Modified files:
        libpurple/protocols/qq/buddy_info.c
        libpurple/protocols/qq/buddy_memo.c
        libpurple/protocols/qq/send_file.c

ChangeLog: 

Fix qq compile.

-------------- next part --------------
============================================================
--- libpurple/protocols/qq/buddy_info.c	6f81dfe666d41b968ed23812858ac34c5a666197
+++ libpurple/protocols/qq/buddy_info.c	9246d086b1e2b7aedc9e8e98df6f390190db3a73
@@ -636,7 +636,7 @@ static void update_buddy_info(PurpleConn
 	}
 
 	/* if the buddy is null, the api will catch it and return null here */
-	bd = purple_object_get_protocol_data(buddy);
+	bd = purple_object_get_protocol_data(PURPLE_OBJECT(buddy));
 	/* purple_debug_info("QQ", "bd=%p\n", (void*)bd); */
 
 	if (bd == NULL || buddy == NULL) {
============================================================
--- libpurple/protocols/qq/buddy_memo.c	7f8924bac9f2b3012de3fe7ec69b096ea2f3d7f3
+++ libpurple/protocols/qq/buddy_memo.c	ee5fbc637ea956eb8ad0d358df6babe7963d048e
@@ -114,7 +114,7 @@ static void update_buddy_memo(PurpleConn
 	gchar *who;
 	g_return_if_fail(NULL != gc && NULL != alias);
 
-	account = (PurpleAccount *)gc->account;
+	account = purple_connection_get_account(gc);
 	g_return_if_fail(NULL != account);
 
 	who = uid_to_purple_name(bd_uid);
============================================================
--- libpurple/protocols/qq/send_file.c	408eafbe26c3d35216073959a73ef900aeafb090
+++ libpurple/protocols/qq/send_file.c	9ea40757feffd0fa18f2eec45f22c3cb2035ddc9
@@ -807,7 +807,7 @@ void qq_process_recv_file_request(guint8
 		purple_debug_warning("QQ",
 			    "Received a FACE ip detect from %d, so he/she must be online :)\n", sender_uid);
 
-		b = purple_find_buddy(gc->account, sender_name);
+		b = purple_find_buddy(purple_connection_get_account(gc), sender_name);
 		bd = (b == NULL) ? NULL : (qq_buddy_data *) purple_object_get_protocol_data(PURPLE_OBJECT(b));
 		if (bd) {
 			if(0 != info->remote_real_ip) {


More information about the Commits mailing list