pidgin: 793f320e: Silc: Use file-transfer accessor functio...

andrew.victor at mxit.com andrew.victor at mxit.com
Sun Oct 30 12:20:48 EDT 2011


----------------------------------------------------------------------
Revision: 793f320ee77c9e3ca318168eadc7d9799c8bbeee
Parent:   7675be95507719ad900d285a381954776f55f8c8
Author:   andrew.victor at mxit.com
Date:     10/30/11 11:58:20
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/793f320ee77c9e3ca318168eadc7d9799c8bbeee

Changelog: 

Silc: Use file-transfer accessor functions


Changes against parent 7675be95507719ad900d285a381954776f55f8c8

  patched  libpurple/protocols/silc/ft.c

-------------- next part --------------
============================================================
--- libpurple/protocols/silc/ft.c	54a6c55e35d7bae46b6ec3d2e87160524e8f7a7d
+++ libpurple/protocols/silc/ft.c	3d2b7ca51875652109d5a2a710bb03a360b73f16
@@ -86,7 +86,7 @@ silcpurple_ftp_monitor(SilcClient client
 		purple_notify_error(gc, _("Secure File Transfer"),
 				    _("Error during file transfer"),
 				    _("Remote disconnected"));
-		xfer->xfer->status = PURPLE_XFER_STATUS_CANCEL_REMOTE;
+		purple_xfer_set_status(xfer->xfer, PURPLE_XFER_STATUS_CANCEL_REMOTE);
 		purple_xfer_update_progress(xfer->xfer);
 		silc_client_file_close(client, conn, session_id);
 		return;
@@ -122,7 +122,7 @@ silcpurple_ftp_monitor(SilcClient client
 					  _("Error during file transfer"),
 					  _("File transfer session does not exist"));
 		}
-		xfer->xfer->status = PURPLE_XFER_STATUS_CANCEL_REMOTE;
+		purple_xfer_set_status(xfer->xfer, PURPLE_XFER_STATUS_CANCEL_REMOTE);
 		purple_xfer_update_progress(xfer->xfer);
 		silc_client_file_close(client, conn, session_id);
 		return;
@@ -154,7 +154,7 @@ silcpurple_ftp_cancel(PurpleXfer *x)
 	if (!xfer)
 		return;
 
-	xfer->xfer->status = PURPLE_XFER_STATUS_CANCEL_LOCAL;
+	purple_xfer_set_status(xfer->xfer, PURPLE_XFER_STATUS_CANCEL_LOCAL);
 	purple_xfer_update_progress(xfer->xfer);
 	silc_client_file_close(xfer->sg->client, xfer->sg->conn, xfer->session_id);
 }


More information about the Commits mailing list