aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-11-22 00:18:38 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:18:38 +0800
commite5d8ce41314a671135d02a305de5826659d0fcd6 (patch)
tree1ed4b1eca44a4517c6fbe24cc2c3359ef4946b49
parent97c7f469e45c760d260fde6720e9204b06543d91 (diff)
downloadgsoc2013-empathy-e5d8ce41314a671135d02a305de5826659d0fcd6.tar
gsoc2013-empathy-e5d8ce41314a671135d02a305de5826659d0fcd6.tar.gz
gsoc2013-empathy-e5d8ce41314a671135d02a305de5826659d0fcd6.tar.bz2
gsoc2013-empathy-e5d8ce41314a671135d02a305de5826659d0fcd6.tar.lz
gsoc2013-empathy-e5d8ce41314a671135d02a305de5826659d0fcd6.tar.xz
gsoc2013-empathy-e5d8ce41314a671135d02a305de5826659d0fcd6.tar.zst
gsoc2013-empathy-e5d8ce41314a671135d02a305de5826659d0fcd6.zip
Renamed ft_manager_get_state_change_reason_description to ft_manager_state_change_reason_to_string and fixed the default unknown state return type. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1813
-rw-r--r--libempathy-gtk/empathy-ft-manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-ft-manager.c b/libempathy-gtk/empathy-ft-manager.c
index 4f897cde1..a3b59616f 100644
--- a/libempathy-gtk/empathy-ft-manager.c
+++ b/libempathy-gtk/empathy-ft-manager.c
@@ -207,7 +207,7 @@ ft_manager_update_buttons (EmpathyFTManager *ft_manager)
}
static const gchar *
-ft_manager_get_state_change_reason_description (EmpFileTransferStateChangeReason reason)
+ft_manager_state_change_reason_to_string (EmpFileTransferStateChangeReason reason)
{
switch (reason)
{
@@ -222,7 +222,7 @@ ft_manager_get_state_change_reason_description (EmpFileTransferStateChangeReason
case EMP_FILE_TRANSFER_STATE_CHANGE_REASON_REMOTE_ERROR:
return _("The other participant is unable to transfer the file");
default:
- g_return_val_if_reached ("");
+ return _("Unknown reason");
}
}
@@ -343,7 +343,7 @@ ft_manager_update_ft_row (EmpathyFTManager *ft_manager,
contact_name);
second_line = g_strdup_printf (_("File transfer canceled: %s"),
- ft_manager_get_state_change_reason_description (reason));
+ ft_manager_state_change_reason_to_string (reason));
break;