diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:23:58 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:23:58 +0800 |
commit | e34269ecb0c8f83c03106876171124baacb6b0e8 (patch) | |
tree | a9e5da34337ff2de6735c83c6b6eeabfff47dbb2 /src | |
parent | 5079a9d3de6a37fbf40ce420e051c347dbfa0027 (diff) | |
download | gsoc2013-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')
-rw-r--r-- | src/empathy-ft-manager.c | 7 |
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 |