aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-ft-manager.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:23:58 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:23:58 +0800
commite34269ecb0c8f83c03106876171124baacb6b0e8 (patch)
treea9e5da34337ff2de6735c83c6b6eeabfff47dbb2 /src/empathy-ft-manager.c
parent5079a9d3de6a37fbf40ce420e051c347dbfa0027 (diff)
downloadgsoc2013-empathy-e34269ecb0c8f83c03106876171124baacb6b0e8.tar
gsoc2013-empathy-e34269ecb0c8f83c03106876171124baacb6b0e8.tar.gz
gsoc2013-empathy-e34269ecb0c8f83c03106876171124baacb6b0e8.tar.bz2
gsoc2013-empathy-e34269ecb0c8f83c03106876171124baacb6b0e8.tar.lz
gsoc2013-empathy-e34269ecb0c8f83c03106876171124baacb6b0e8.tar.xz
gsoc2013-empathy-e34269ecb0c8f83c03106876171124baacb6b0e8.tar.zst
gsoc2013-empathy-e34269ecb0c8f83c03106876171124baacb6b0e8.zip
Add all reasons in ft_manager_state_change_reason_to_string(). Don't use default in the switch so we get compile warning if more reasons is added to
the spec (makes easier to not forget to update that function). svn path=/trunk/; revision=1894
Diffstat (limited to 'src/empathy-ft-manager.c')
-rw-r--r--src/empathy-ft-manager.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c
index 2febb5cbc..d6383e640 100644
--- a/src/empathy-ft-manager.c
+++ b/src/empathy-ft-manager.c
@@ -198,7 +198,9 @@ ft_manager_state_change_reason_to_string (EmpFileTransferStateChangeReason reaso
switch (reason)
{
case EMP_FILE_TRANSFER_STATE_CHANGE_REASON_NONE:
- return _("File transfer not completed");
+ return _("No reason was specified");
+ case EMP_FILE_TRANSFER_STATE_CHANGE_REASON_REQUESTED:
+ return _("The change in state was requested");
case EMP_FILE_TRANSFER_STATE_CHANGE_REASON_LOCAL_STOPPED:
return _("You canceled the file transfer");
case EMP_FILE_TRANSFER_STATE_CHANGE_REASON_REMOTE_STOPPED:
@@ -207,9 +209,8 @@ ft_manager_state_change_reason_to_string (EmpFileTransferStateChangeReason reaso
return _("Error while trying to transfer the file");
case EMP_FILE_TRANSFER_STATE_CHANGE_REASON_REMOTE_ERROR:
return _("The other participant is unable to transfer the file");
- default:
- return _("Unknown reason");
}
+ return _("Unknown reason");
}
static void