empathy r1894 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1894 - trunk/src
- Date: Fri, 21 Nov 2008 16:23:58 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:23:58 2008
New Revision: 1894
URL: http://svn.gnome.org/viewvc/empathy?rev=1894&view=rev
Log:
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).
Modified:
trunk/src/empathy-ft-manager.c
Modified: trunk/src/empathy-ft-manager.c
==============================================================================
--- trunk/src/empathy-ft-manager.c (original)
+++ trunk/src/empathy-ft-manager.c Fri Nov 21 16:23:58 2008
@@ -198,7 +198,9 @@
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 @@
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]