From e34269ecb0c8f83c03106876171124baacb6b0e8 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 21 Nov 2008 16:23:58 +0000 Subject: 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 --- src/empathy-ft-manager.c | 7 ++++--- 1 file 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 -- cgit v1.2.3