[empathy] empathy-call-window: add a friendly message for TP_MEDIA_STREAM_ERROR_CONNECTION_FAILED (#575763)



commit 7a89f0e836e77d50b63cbf7aee35b1f3dc0a3e34
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Nov 5 14:58:05 2009 +0000

    empathy-call-window: add a friendly message for TP_MEDIA_STREAM_ERROR_CONNECTION_FAILED (#575763)

 src/empathy-call-window.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index df1ed51..e0f8d85 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1544,6 +1544,13 @@ media_stream_error_to_txt (EmpathyCallWindow *self,
             _("You don't have any codecs in common with %s."),
           empathy_contact_get_name (priv->contact));
 
+      case TP_MEDIA_STREAM_ERROR_CONNECTION_FAILED:
+        return g_strdup_printf (
+            _("Can't establish a connection to %s. "
+              "One of you might be on a network that does not allow "
+              "direct connections."),
+          empathy_contact_get_name (priv->contact));
+
       /* TODO: support more errors */
       default:
         return NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]