aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2009-10-30 18:10:26 +0800
committerJonny Lamb <jonnylamb@gnome.org>2009-10-30 18:10:26 +0800
commitd5f2776bacfe750f02782cef348e984ed68916af (patch)
treef6f96860b17206dd8166eed34d66457daa5fef7e /src
parent12fcf479a49d90c34a203d1c93050fac762956f3 (diff)
downloadgsoc2013-empathy-d5f2776bacfe750f02782cef348e984ed68916af.tar
gsoc2013-empathy-d5f2776bacfe750f02782cef348e984ed68916af.tar.gz
gsoc2013-empathy-d5f2776bacfe750f02782cef348e984ed68916af.tar.bz2
gsoc2013-empathy-d5f2776bacfe750f02782cef348e984ed68916af.tar.lz
gsoc2013-empathy-d5f2776bacfe750f02782cef348e984ed68916af.tar.xz
gsoc2013-empathy-d5f2776bacfe750f02782cef348e984ed68916af.tar.zst
gsoc2013-empathy-d5f2776bacfe750f02782cef348e984ed68916af.zip
all: log error messages if preparing the account manager fails
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'src')
-rw-r--r--src/empathy-accounts-dialog.c9
-rw-r--r--src/empathy-import-widget.c9
-rw-r--r--src/empathy-main-window.c5
-rw-r--r--src/empathy-status-icon.c5
-rw-r--r--src/empathy.c27
5 files changed, 43 insertions, 12 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index cb43c972e..014b73611 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -1561,9 +1561,14 @@ accounts_dialog_manager_ready_cb (GObject *source_object,
gpointer user_data)
{
TpAccountManager *manager = TP_ACCOUNT_MANAGER (source_object);
+ GError *error = NULL;
- if (!tp_account_manager_prepare_finish (manager, result, NULL))
- return;
+ if (!tp_account_manager_prepare_finish (manager, result, &error))
+ {
+ DEBUG ("Failed to prepare account manager: %s", error->message);
+ g_error_free (error);
+ return;
+ }
accounts_dialog_accounts_setup (user_data);
}
diff --git a/src/empathy-import-widget.c b/src/empathy-import-widget.c
index 629b15162..5a0d82c8c 100644
--- a/src/empathy-import-widget.c
+++ b/src/empathy-import-widget.c
@@ -99,9 +99,14 @@ account_manager_prepared_cb (GObject *source_object,
GtkTreeIter iter;
GList *l;
EmpathyImportWidgetPriv *priv = GET_PRIV (self);
+ GError *error = NULL;
- if (!tp_account_manager_prepare_finish (manager, result, NULL))
- return;
+ if (!tp_account_manager_prepare_finish (manager, result, &error))
+ {
+ DEBUG ("Failed to prepare account manager: %s", error->message);
+ g_error_free (error);
+ return;
+ }
model = gtk_tree_view_get_model (GTK_TREE_VIEW (priv->treeview));
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index dbaf399f8..a2f9dde13 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1193,8 +1193,11 @@ account_manager_prepared_cb (GObject *source_object,
GList *accounts, *j;
TpAccountManager *manager = TP_ACCOUNT_MANAGER (source_object);
EmpathyMainWindow *window = user_data;
+ GError *error = NULL;
- if (!tp_account_manager_prepare_finish (manager, result, NULL)) {
+ if (!tp_account_manager_prepare_finish (manager, result, &error)) {
+ DEBUG ("Failed to prepare account manager: %s", error->message);
+ g_error_free (error);
return;
}
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index 33c2da031..ba1bef1a4 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -560,8 +560,11 @@ account_manager_prepared_cb (GObject *source_object,
GList *list, *l;
TpAccountManager *account_manager = TP_ACCOUNT_MANAGER (source_object);
EmpathyStatusIcon *icon = user_data;
+ GError *error = NULL;
- if (!tp_account_manager_prepare_finish (account_manager, result, NULL)) {
+ if (!tp_account_manager_prepare_finish (account_manager, result, &error)) {
+ DEBUG ("Failed to prepare account manager: %s", error->message);
+ g_error_free (error);
return;
}
diff --git a/src/empathy.c b/src/empathy.c
index 2acaf63df..6487058a4 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -465,9 +465,14 @@ account_manager_ready_for_accounts_cb (GObject *source_object,
gpointer user_data)
{
TpAccountManager *manager = TP_ACCOUNT_MANAGER (source_object);
+ GError *error = NULL;
- if (!tp_account_manager_prepare_finish (manager, result, NULL))
- return;
+ if (!tp_account_manager_prepare_finish (manager, result, &error))
+ {
+ DEBUG ("Failed to prepare account manager: %s", error->message);
+ g_error_free (error);
+ return;
+ }
do_show_accounts_ui (user_data, manager);
}
@@ -607,9 +612,14 @@ account_manager_ready_cb (GObject *source_object,
gpointer user_data)
{
TpAccountManager *manager = TP_ACCOUNT_MANAGER (source_object);
+ GError *error = NULL;
- if (!tp_account_manager_prepare_finish (manager, result, NULL))
- return;
+ if (!tp_account_manager_prepare_finish (manager, result, &error))
+ {
+ DEBUG ("Failed to prepare account manager: %s", error->message);
+ g_error_free (error);
+ return;
+ }
if (should_create_salut_account () || !empathy_import_mc4_has_imported ())
{
@@ -743,9 +753,14 @@ account_manager_chatroom_ready_cb (GObject *source_object,
TpAccountManager *account_manager = TP_ACCOUNT_MANAGER (source_object);
EmpathyChatroomManager *chatroom_manager = user_data;
GList *accounts, *l;
+ GError *error = NULL;
- if (!tp_account_manager_prepare_finish (account_manager, result, NULL))
- return;
+ if (!tp_account_manager_prepare_finish (account_manager, result, &error))
+ {
+ DEBUG ("Failed to prepare account manager: %s", error->message);
+ g_error_free (error);
+ return;
+ }
accounts = tp_account_manager_get_valid_accounts (account_manager);