gobjectification: 4d19541a: Fix GG compile.
qulogic at pidgin.im
qulogic at pidgin.im
Sat Dec 13 22:19:00 EST 2008
-----------------------------------------------------------------
Revision: 4d19541a3185c246ad1b22649611afa17045ecf7
Ancestor: 1d760553b70bc12a30f16b39e7e468efb8e6aefb
Author: qulogic at pidgin.im
Date: 2008-12-13T21:45:34
Branch: im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/4d19541a3185c246ad1b22649611afa17045ecf7
Modified files:
libpurple/protocols/gg/gg.c
ChangeLog:
Fix GG compile.
-------------- next part --------------
============================================================
--- libpurple/protocols/gg/gg.c 6fd45cf3ded8b77c3b344823370465e0a502ad7b
+++ libpurple/protocols/gg/gg.c ffae363f4771a209973abf95d75a8701c13f0117
@@ -416,7 +416,7 @@ static void ggp_callback_register_accoun
GGPInfo *info = purple_object_get_protocol_data(PURPLE_OBJECT(gc));
GGPToken *token = info->token;
- purple_account_disconnect(gc->account);
+ purple_account_disconnect(purple_connection_get_account(gc));
g_free(token->id);
g_free(token->data);
@@ -1145,7 +1145,7 @@ static void ggp_recv_image_handler(Purpl
static void ggp_recv_image_handler(PurpleConnection *gc, const struct gg_event *ev)
{
gint imgid = 0;
- GGPInfo *info = gc->proto_data;
+ GGPInfo *info = purple_object_get_protocol_data(PURPLE_OBJECT(gc));
GList *entry = g_list_first(info->pending_richtext_messages);
gchar *handlerid = g_strdup_printf("IMGID_HANDLER-%i", ev->event.image_reply.crc32);
@@ -1349,7 +1349,7 @@ static void ggp_send_image_handler(Purpl
static void ggp_send_image_handler(PurpleConnection *gc, const struct gg_event *ev)
{
- GGPInfo *info = gc->proto_data;
+ GGPInfo *info = purple_object_get_protocol_data(PURPLE_OBJECT(gc));
PurpleStoredImage *image;
gint imgid = GPOINTER_TO_INT(g_hash_table_lookup(info->pending_images, &ev->event.image_request.crc32));
More information about the Commits
mailing list