aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-05-08 05:13:09 +0800
committerChris Toshok <toshok@src.gnome.org>2001-05-08 05:13:09 +0800
commit37341be2789b0d15b435031e468817169053ec14 (patch)
tree44404f2f4e51fdb0a7bd99892f40813f8a378ee9 /addressbook
parent46e839289d87473c737bb2392b4324976688618f (diff)
downloadgsoc2013-evolution-37341be2789b0d15b435031e468817169053ec14.tar.gz
gsoc2013-evolution-37341be2789b0d15b435031e468817169053ec14.tar.zst
gsoc2013-evolution-37341be2789b0d15b435031e468817169053ec14.zip
Use a different error message in the ldap support/no ldap support/file
2001-05-07 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c (book_open_cb): Use a different error message in the ldap support/no ldap support/file cases. svn path=/trunk/; revision=9700
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/component/addressbook.c60
2 files changed, 43 insertions, 22 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 1c7513e9c5..5e8fa02dde 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-07 Chris Toshok <toshok@ximian.com>
+
+ * gui/component/addressbook.c (book_open_cb): Use a different
+ error message in the ldap support/no ldap support/file cases.
+
2001-05-07 Gediminas Paulauskas <menesis@delfi.lt>
* gui/component/addressbook.c: use define from
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index a67b004f31..027a777621 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -394,13 +394,13 @@ passwd_cb (gchar *string, gpointer data)
static void
book_open_cb (EBook *book, EBookStatus status, gpointer closure)
{
- if (status == E_BOOK_STATUS_SUCCESS) {
- AddressbookView *view = closure;
- AddressbookSource *source;
+ AddressbookView *view = closure;
+ AddressbookSource *source;
+ source = addressbook_storage_get_source_by_uri (view->uri);
+ if (status == E_BOOK_STATUS_SUCCESS) {
/* check if the addressbook needs authentication */
- source = addressbook_storage_get_source_by_uri (view->uri);
if (source &&
source->type == ADDRESSBOOK_SOURCE_LDAP &&
source->ldap.auth == ADDRESSBOOK_LDAP_AUTH_SIMPLE) {
@@ -431,34 +431,50 @@ book_open_cb (EBook *book, EBookStatus status, gpointer closure)
NULL);
} else {
- GtkWidget *warning_dialog, *label, *href;
+ GtkWidget *warning_dialog, *label;
warning_dialog = gnome_dialog_new (
_("Unable to open addressbook"),
GNOME_STOCK_BUTTON_CLOSE,
NULL);
-
- label = gtk_label_new (
- _("We were unable to open this addressbook. This either\n"
- "means you have entered an incorrect URI, or have tried\n"
- "to access an LDAP server and don't have LDAP support\n"
- "compiled in. If you've entered a URI, check the URI for\n"
- "correctness and reenter. If not, you probably have\n"
- "attempted to access an LDAP server. If you wish to be\n"
- "able to use LDAP, you'll need to download and install\n"
- "OpenLDAP and recompile and install Evolution.\n"));
+
+ if (source->type == ADDRESSBOOK_SOURCE_LDAP) {
+#if HAVE_LDAP
+ label = gtk_label_new (
+ _("We were unable to open this addressbook. This either\n"
+ "means you have entered an incorrect URI, or the LDAP server\n"
+ "is down"));
+#else
+ label = gtk_label_new (
+ _("This version of Evolution does not have LDAP support\n"
+ "compiled in to it. If you want to use LDAP in Evolution\n"
+ "you must compile the program from the CVS sources after\n"
+ "retrieving OpenLDAP from the link below.\n"));
+#endif
+ }
+ else {
+ label = gtk_label_new (
+ _("We were unable to open this addressbook. Please check that the\n"
+ "path exists and that you have permission to access it."));
+ }
+
gtk_misc_set_alignment(GTK_MISC(label),
0, .5);
gtk_label_set_justify(GTK_LABEL(label),
GTK_JUSTIFY_LEFT);
- gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (warning_dialog)->vbox),
- label, TRUE, TRUE, 0);
- gtk_widget_show (label);
- href = gnome_href_new ("http://www.openldap.org/", "OpenLDAP at http://www.openldap.org/");
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (warning_dialog)->vbox),
- href, FALSE, FALSE, 0);
- gtk_widget_show (href);
-
+ label, TRUE, TRUE, 0);
+ gtk_widget_show (label);
+
+#ifndef HAVE_LDAP
+ if (source->type == ADDRESSBOOK_SOURCE_LDAP) {
+ GtkWidget *href;
+ href = gnome_href_new ("http://www.openldap.org/", "OpenLDAP at http://www.openldap.org/");
+ gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (warning_dialog)->vbox),
+ href, FALSE, FALSE, 0);
+ gtk_widget_show (href);
+ }
+#endif
gnome_dialog_run (GNOME_DIALOG (warning_dialog));
gtk_object_destroy (GTK_OBJECT (warning_dialog));
'/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/mail/postfix23?id=6c32b37e7f6a369f5d433133e3c0ffea996e623f'>Update to 2.0.16osa2003-10-023-10/+13 * Update postfix to latest release (mainly a Solaris bug workaround).osa2003-09-092-2/+2 * Update to 2.0.14 [1]osa2003-08-284-99/+99 * Fix plist at optional IPv6 configuration.kuriyama2003-08-172-1/+7 * Fix non-default dependency on openldap2[012] which is broken by splitting.kuriyama2003-08-151-3/+3 * One of the patch files for postfix was not PREFIX-clean. This makes iterwin2003-07-231-7/+7 * Included in this email is a patch to postfix which I need applied forerwin2003-07-101-1/+13 * Fix building with SASL2 case.osa2003-07-071-4/+1 * update mail/postfix: 2.0.12 --> 2.0.13daichi2003-07-023-17/+12 * Upgrade to 2.0.12.obraun2003-06-283-12/+12 * - Update postfix to 2.0.10 releasenaddy2003-06-023-4/+15 * * Upgrade to 2.0.9.obraun2003-05-133-21/+17 * update postfix to 2.0.7leeym2003-04-153-18/+34 * update postfix to 2.0.6leeym2003-03-113-4/+3 * Batch building of packages for postfix is failing due to PCRE issues.leeym2003-03-042-12/+19 * Spell `-ldes' as `-lcrypto'.nectar2003-03-031-3/+3 * Point dependencies on net/openldap to net/openldap12edwin2003-02-241-2/+2 * add PORTEPOCH=1, which was removed by maintainer in rev 1.67leeym2003-02-231-0/+1 * Add missing manpage.demon2003-02-231-2/+2 * update postfix to 2.0.4leeym2003-02-233-10/+9 * De-pkg-comment.knu2003-02-212-1/+1 * upgrade to version 2.0.2sada2003-01-195-19/+67 * Update to 2.0.0.2.petef2003-01-0917-115/+208 * Missed configure scripts in libpq version bump: chase lib version.seanc2003-01-051-2/+3 * upgrade to 1.1.12ijliao2003-01-0258-1074/+42 * Add hooks to preselect postfix optionsdwcjr2002-08-273-31/+47 * moving saslv1 includes files to make it easier to add saslv2ume2002-07-293-6/+6 * Update to 1.1.11dwcjr2002-06-205-10/+25 * Update to latestdwcjr2002-05-172-2/+2 * Update to 1.1.9dwcjr2002-05-153-12/+12 * Add PGSQL supportdwcjr2002-05-092-2/+13 * Add missing pkg-messagedwcjr2002-05-071-0/+24 * Update to 1.1.8dwcjr2002-05-074-26/+24 * handle batch buildsdwcjr2002-04-212-4/+4 * Update postfix to 1.1.7dwcjr2002-04-024-9/+20 * Add USE_SUBMAKE, where it might be necessary.sobomax2002-03-251-0/+2 * Update to 1.1.5dwcjr2002-03-194-6/+8 * Update postfix to 1.1.4dwcjr2002-02-273-6/+6 * Update to 1.1.3dwcjr2002-02-125-28/+40 * Add missing files to pkg-plistdwcjr2002-02-013-2/+18 * Update to 1.1.2 (yes they are finally using versions)dwcjr2002-01-3122-486/+411 * Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;knu2002-01-291-9/+9 * Set context of diff for patch-aa to 2 lines to allow tls patchingdwcjr2002-01-181-51/+24 * Disable debugger by defaultnectar2002-01-151-19/+91 * Add header/body_check warnings commanddwcjr2001-11-272-0/+25 * Update to pl08 and tls to go with it.dwcjr2001-11-163-6/+6 * Update to pl07dwcjr2001-11-152-2/+2 * Update postfix to 20010228-pl06 and update tls to go with it.dwcjr2001-11-063-7/+6 * Fix path in patchdwcjr2001-10-111-1/+1 * Erase extra parts of install.cfdwcjr2001-09-241-4/+0 * Remove version tags from files that don't need it.dwcjr2001-09-242-2/+0 * Install install.cf to ensure spool is created with correct permissionsdwcjr2001-09-243-1/+18 * Update to pl05dwcjr2001-09-233-10/+9 * Fix path on main.cf in reference to prefixdwcjr2001-09-142-2/+2 * Correct the size of the dialog box so dialog(1) doesn't bug out and trashkris2001-08-201-2/+2 * Back out the db3 port update because some of these dependent ports hadknu2001-08-012-3/+3 * Reflect databases/db3's shlib version bump from 2 to 3.knu2001-07-252-2/+3 * Update to pl3 of postfixdwcjr2001-06-183-9/+9 * I'm taking over this port for Blaz since he can't dedicate time to itdwcjr2001-06-181-1/+1 * Update port to 20010228 pl02.kuriyama2001-05-214-30/+24 * update postfix to 20010228-pl01mharo2001-04-022-4/+3 * Revert previous commit.kuriyama2001-03-261-3/+3 * Link shared library for MySQL.kuriyama2001-03-241-3/+3 * Make spool directory at pkg-install.kuriyama2001-03-141-0/+1 * fix build options.sf2001-03-131-2/+2 * Disable IPv6 on Alpha, since this breaks it.alex2001-03-121-5/+20 * remove BROKEN for alpha, the unaligned access errors are a red herring.billf2001-03-111-4/+0 * Mark BROKEN for alpha: Unaligned access problems in postsuper and postlogalex2001-03-111-0/+4 * Fix the DB3 support. DB3's shlib version is now at 2.knu2001-03-061-2/+2 * use DIST_SUBDIR=postfix due to both release and snapshot don't havesf2001-03-052-3/+4 * update to NON BETA release, 20010228.sf2001-03-0549-354/+820 * Add -lz to be compiled with MySQL.kuriyama2001-02-171-1/+1 * add MASTER_SITE_RINGSERVER to MASTER_SITES.sf2001-02-061-1/+2 * Spaces->tabs in the mail category.olgeni2001-02-051-1/+1 * Switch from mysql322-{client,server} to mysql323-{client,server}.dirk2001-01-211-1/+1 * Unbreak use with rmail and bump PORTREVISION.dannyboy2000-12-233-40/+60 * Update to 19991231-pl13.dannyboy2000-12-234-4/+5 * Update to postfix 19991231-pl10. Install LDAP_README and MYSQL_README alongwill2000-11-1457-435/+1061 * Hand MAINTAINER to Blaz Zupan <blaz@amis.net>.will2000-11-081-1/+1 * Remove Torsten Blum by due effect of not being a maintainer - many reportswill2000-11-081-1/+1 * Change PKGDIR from pkg/ to . Also fix places where ${PKGDIR} isasami2000-10-08