[evolution-data-server] e-book-auth-util: Always listen for "auth-required" signals
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] e-book-auth-util: Always listen for "auth-required" signals
- Date: Tue, 18 Jan 2011 22:46:04 +0000 (UTC)
commit 36ff04251a112f6d621ec227a33af7e545b373ca
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Jan 18 17:28:41 2011 -0500
e-book-auth-util: Always listen for "auth-required" signals
libedataserverui/e-book-auth-util.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libedataserverui/e-book-auth-util.c b/libedataserverui/e-book-auth-util.c
index a143bf2..fc68218 100644
--- a/libedataserverui/e-book-auth-util.c
+++ b/libedataserverui/e-book-auth-util.c
@@ -256,9 +256,14 @@ load_source_cb (EBook *book, const GError *error, gpointer closure)
if (!error && book != NULL) {
const gchar *auth;
+ /* Listen for "auth-required" signals regardless of
+ * whether the ESource claims to require authentication. */
+ g_signal_connect (
+ book, "auth-required",
+ G_CALLBACK (auth_required_cb), NULL);
+
auth = e_source_get_property (load_source_data->source, "auth");
if (auth && strcmp (auth, "none")) {
- g_signal_connect (book, "auth_required", (GCallback) auth_required_cb, NULL);
if (e_book_is_online (book)) {
addressbook_authenticate (book, FALSE, load_source_data->source,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]