From 9bfe3cdd27190113f8da56cf718c3af7ff9da5d9 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 13 Nov 2009 12:04:50 +0000 Subject: [PATCH] media_stream_error_to_txt: display a link to the fdo bugzilla --- src/empathy-call-window.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 6c8a7cca..07cad91f 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -1545,6 +1545,8 @@ media_stream_error_to_txt (EmpathyCallWindow *self, { EmpathyCallWindowPriv *priv = GET_PRIV (self); const gchar *cm; + gchar *url; + gchar *result; switch (error) { @@ -1580,10 +1582,17 @@ media_stream_error_to_txt (EmpathyCallWindow *self, case TP_MEDIA_STREAM_ERROR_INVALID_CM_BEHAVIOR: cm = empathy_tp_call_get_connection_manager (call); - return g_strdup_printf (_("Something not expected happened in a " - "Telepathy component (%s). " - "Please report this bug and attach logs gathered " - "from the 'Debug' window in the Help menu."), cm); + + url = g_strdup_printf ("http://bugs.freedesktop.org/enter_bug.cgi?" + "product=Telepathy&component=%s", cm); + + result = g_strdup_printf ( + _("Something not expected happened in a Telepathy component. " + "Please report this bug and attach " + "logs gathered from the 'Debug' window in the Help menu."), url); + + g_free (url); + return result; case TP_MEDIA_STREAM_ERROR_MEDIA_ERROR: return g_strdup (_("There was a failure in the call engine")); -- 2.39.2