empathy r1814 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1814 - trunk/libempathy-gtk
- Date: Fri, 21 Nov 2008 16:18:42 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:18:41 2008
New Revision: 1814
URL: http://svn.gnome.org/viewvc/empathy?rev=1814&view=rev
Log:
Made ft_manager_update_ft_row handle Local_Pending slightly nicer. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
Modified:
trunk/libempathy-gtk/empathy-ft-manager.c
Modified: trunk/libempathy-gtk/empathy-ft-manager.c
==============================================================================
--- trunk/libempathy-gtk/empathy-ft-manager.c (original)
+++ trunk/libempathy-gtk/empathy-ft-manager.c Fri Nov 21 16:18:41 2008
@@ -257,14 +257,9 @@
state = empathy_tp_file_get_state (tp_file);
reason = empathy_tp_file_get_state_change_reason (tp_file);
- /* The state is changed asynchronously, so we can get local pending
- * transfers just before their state is changed to open.
- * Just treat them as open file transfers. */
- if (state == EMP_FILE_TRANSFER_STATE_LOCAL_PENDING)
- state = EMP_FILE_TRANSFER_STATE_OPEN;
-
switch (state)
{
+ case EMP_FILE_TRANSFER_STATE_LOCAL_PENDING:
case EMP_FILE_TRANSFER_STATE_REMOTE_PENDING:
case EMP_FILE_TRANSFER_STATE_OPEN:
case EMP_FILE_TRANSFER_STATE_ACCEPTED:
@@ -279,7 +274,8 @@
first_line = g_strdup_printf (first_line_format, filename, contact_name);
if (state == EMP_FILE_TRANSFER_STATE_OPEN
- || state == EMP_FILE_TRANSFER_STATE_ACCEPTED)
+ || state == EMP_FILE_TRANSFER_STATE_ACCEPTED
+ || state == EMP_FILE_TRANSFER_STATE_LOCAL_PENDING)
{
gchar *total_size_str;
gchar *transferred_bytes_str;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]