aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChandni Verma <chandniverma2112@gmail.com>2010-10-15 10:33:48 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2010-10-15 11:01:48 +0800
commitc07cc33d2453bc8bcb5597439f620a7534680d31 (patch)
tree4dcd4611434047b74faff4497c925b3aa4b339d9 /src
parentb13f029ad4b09ea1c61de7e05ff46eec9b7f2647 (diff)
downloadgsoc2013-empathy-c07cc33d2453bc8bcb5597439f620a7534680d31.tar
gsoc2013-empathy-c07cc33d2453bc8bcb5597439f620a7534680d31.tar.gz
gsoc2013-empathy-c07cc33d2453bc8bcb5597439f620a7534680d31.tar.bz2
gsoc2013-empathy-c07cc33d2453bc8bcb5597439f620a7534680d31.tar.lz
gsoc2013-empathy-c07cc33d2453bc8bcb5597439f620a7534680d31.tar.xz
gsoc2013-empathy-c07cc33d2453bc8bcb5597439f620a7534680d31.tar.zst
gsoc2013-empathy-c07cc33d2453bc8bcb5597439f620a7534680d31.zip
A modal dialog to warn the user if account manager could not be contacted
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=594576 Reviewed-by: Danielle Madeley <danielle.madeley@collabora.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/empathy.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/empathy.c b/src/empathy.c
index f22d69b25..2a8761c6f 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -259,7 +259,21 @@ account_manager_ready_cb (GObject *source_object,
if (!tp_account_manager_prepare_finish (manager, result, &error))
{
+ GtkWidget *dialog;
+
DEBUG ("Failed to prepare account manager: %s", error->message);
+
+ dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
+ GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
+ _("Error contacting the Account Manager"));
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
+ _("There was an error while trying to connect to the Telepathy "
+ "Account Manager. The error was:\n\n%s"),
+ error->message);
+
+ gtk_dialog_run (GTK_DIALOG (dialog));
+ gtk_widget_destroy (dialog);
+
g_error_free (error);
return;
}