empathy r1762 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1762 - trunk/libempathy-gtk
- Date: Fri, 21 Nov 2008 16:15:25 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:15:25 2008
New Revision: 1762
URL: http://svn.gnome.org/viewvc/empathy?rev=1762&view=rev
Log:
Display cancel reasons in the file transfer manager. (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:15:25 2008
@@ -298,7 +298,7 @@
gtk_widget_set_sensitive (priv->abort_button, abort_enabled);
}
-/*static const gchar *
+static const gchar *
get_state_change_reason_description (EmpFileTransferStateChangeReason reason)
{
switch (reason) {
@@ -315,7 +315,7 @@
default:
g_return_val_if_reached ("");
}
-}*/
+}
static void
update_ft_row (EmpathyFTManager *ft_manager,
@@ -337,6 +337,7 @@
gint remaining = -1;
gint percent;
EmpFileTransferState state;
+ EmpFileTransferStateChangeReason reason;
priv = GET_PRIV (ft_manager);
@@ -348,6 +349,7 @@
transferred_bytes = empathy_file_get_transferred_bytes (file);
total_size = empathy_file_get_size (file);
state = empathy_file_get_state (file);
+ reason = empathy_file_get_state_change_reason (file);
/* The state is changed asynchronously, so we can get local pending
* transfers just before their state is changed to open.
@@ -426,7 +428,8 @@
first_line = g_strdup_printf (
_("\"%s\" sending to %s"), filename,
contact_name);
- second_line = g_strdup ("File transfer cancelled");
+ second_line = g_strdup_printf (_("File transfer canceled: %s"),
+ get_state_change_reason_description (reason));
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]