aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorSuman Manjunath <msuman@src.gnome.org>2008-09-08 12:00:37 +0800
committerSuman Manjunath <msuman@src.gnome.org>2008-09-08 12:00:37 +0800
commitc61bef657d2e6c8ab82573f6366761000881db9e (patch)
treefc1a20801669ef0693bd190033050bc86506b6a7 /addressbook
parent4e08f09a43af4d11e206f72728556b22382ced71 (diff)
downloadgsoc2013-evolution-c61bef657d2e6c8ab82573f6366761000881db9e.tar
gsoc2013-evolution-c61bef657d2e6c8ab82573f6366761000881db9e.tar.gz
gsoc2013-evolution-c61bef657d2e6c8ab82573f6366761000881db9e.tar.bz2
gsoc2013-evolution-c61bef657d2e6c8ab82573f6366761000881db9e.tar.lz
gsoc2013-evolution-c61bef657d2e6c8ab82573f6366761000881db9e.tar.xz
gsoc2013-evolution-c61bef657d2e6c8ab82573f6366761000881db9e.tar.zst
gsoc2013-evolution-c61bef657d2e6c8ab82573f6366761000881db9e.zip
Milan Crha <mcrha@redhat.com> ** Part of fix for bug #361413 (Print detailed error also for LDAP backends).
svn path=/trunk/; revision=36275
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c5
2 files changed, 12 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 3d4b18711b..8381d07b44 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+2008-09-08 Milan Crha <mcrha@redhat.com>
+
+ ** Part of fix for bug #361413
+
+ * gui/widgets/eab-gui-util.c: (eab_load_error_dialog):
+ Print detailed error also for LDAP backends.
+
2008-09-06 Michael Meeks <michael.meeks@novell.com>
* gui/component/openldap-extract.h: License fixes.
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index ba236da919..12d6e9cb76 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -98,12 +98,14 @@ eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status)
{
char *label_string, *label = NULL, *uri;
GtkWidget *dialog;
+ gboolean can_detail_error = TRUE;
g_return_if_fail (source != NULL);
uri = e_source_get_uri (source);
if (status == E_BOOK_ERROR_OFFLINE_UNAVAILABLE) {
+ can_detail_error = FALSE;
label_string = _("We were unable to open this address book. This either means "
"this book is not marked for offline usage or not yet downloaded "
"for offline usage. Please load the address book once in online mode "
@@ -126,6 +128,7 @@ eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status)
"means you have entered an incorrect URI, or the LDAP server "
"is unreachable.");
#else
+ can_detail_error = FALSE;
label_string =
_("This version of Evolution does not have LDAP support "
"compiled in to it. If you want to use LDAP in Evolution, "
@@ -137,7 +140,9 @@ eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status)
_("We were unable to open this address book. This either "
"means you have entered an incorrect URI, or the server "
"is unreachable.");
+ }
+ if (can_detail_error) {
/* do not show repository offline message, it's kind of generic error */
if (status != E_BOOK_ERROR_REPOSITORY_OFFLINE && status > 0 && status < G_N_ELEMENTS (status_to_string) && status_to_string [status]) {
label = g_strconcat (label_string, "\n\n", _("Detailed error:"), " ", _(status_to_string [status]), NULL);