aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-ft-manager.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-05-05 21:56:08 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:47:39 +0800
commit829c16e8589c94b0bdf719c40e6615d00403175f (patch)
tree417bfdcfc704fbc5701d134a6a96efd999308338 /src/empathy-ft-manager.c
parent4e83ee317253d1cd3821258a418cdd829ce01549 (diff)
downloadgsoc2013-empathy-829c16e8589c94b0bdf719c40e6615d00403175f.tar
gsoc2013-empathy-829c16e8589c94b0bdf719c40e6615d00403175f.tar.gz
gsoc2013-empathy-829c16e8589c94b0bdf719c40e6615d00403175f.tar.bz2
gsoc2013-empathy-829c16e8589c94b0bdf719c40e6615d00403175f.tar.lz
gsoc2013-empathy-829c16e8589c94b0bdf719c40e6615d00403175f.tar.xz
gsoc2013-empathy-829c16e8589c94b0bdf719c40e6615d00403175f.tar.zst
gsoc2013-empathy-829c16e8589c94b0bdf719c40e6615d00403175f.zip
React to Tp remote errors
Push Tp state change errors to the handler/UI.
Diffstat (limited to 'src/empathy-ft-manager.c')
-rw-r--r--src/empathy-ft-manager.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c
index 9dab21dba..b37917503 100644
--- a/src/empathy-ft-manager.c
+++ b/src/empathy-ft-manager.c
@@ -153,29 +153,6 @@ ft_manager_update_buttons (EmpathyFTManager *manager)
gtk_widget_set_sensitive (priv->abort_button, abort_enabled);
}
-#if 0
-static const gchar *
-ft_manager_state_change_reason_to_string (TpFileTransferStateChangeReason reason)
-{
- switch (reason)
- {
- case TP_FILE_TRANSFER_STATE_CHANGE_REASON_NONE:
- return _("No reason was specified");
- case TP_FILE_TRANSFER_STATE_CHANGE_REASON_REQUESTED:
- return _("The change in state was requested");
- case TP_FILE_TRANSFER_STATE_CHANGE_REASON_LOCAL_STOPPED:
- return _("You canceled the file transfer");
- case TP_FILE_TRANSFER_STATE_CHANGE_REASON_REMOTE_STOPPED:
- return _("The other participant canceled the file transfer");
- case TP_FILE_TRANSFER_STATE_CHANGE_REASON_LOCAL_ERROR:
- return _("Error while trying to transfer the file");
- case TP_FILE_TRANSFER_STATE_CHANGE_REASON_REMOTE_ERROR:
- return _("The other participant is unable to transfer the file");
- }
- return _("Unknown reason");
-}
-#endif
-
static void
ft_manager_selection_changed (GtkTreeSelection *selection,
EmpathyFTManager *manager)
@@ -1071,4 +1048,4 @@ empathy_ft_manager_display_error (EmpathyFTManager *manager,
ft_manager_add_handler_to_list (manager, handler, error);
gtk_window_present (GTK_WINDOW (priv->window));
-} \ No newline at end of file
+}