aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-11 02:28:25 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-11 02:28:25 +0800
commitb52a3b1cdf17afecac780c5edc8dcbef902f7d60 (patch)
tree2e3ecd6ce072e9b1cceaeb47eeaadd95ae3ee1fe /addressbook/gui/component
parentde2b4b9c3724f0bbb48b2b3b9dae366281603873 (diff)
downloadgsoc2013-evolution-b52a3b1cdf17afecac780c5edc8dcbef902f7d60.tar.gz
gsoc2013-evolution-b52a3b1cdf17afecac780c5edc8dcbef902f7d60.tar.zst
gsoc2013-evolution-b52a3b1cdf17afecac780c5edc8dcbef902f7d60.zip
Added a dialog for when you can't open an addressbook.
2000-05-10 Christopher James Lahey <clahey@helixcode.com> * gui/component/addressbook.c: Added a dialog for when you can't open an addressbook. svn path=/trunk/; revision=2972
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index 825288fa49..35ebe03307 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -434,6 +434,36 @@ book_open_cb (EBook *book, EBookStatus status, gpointer closure)
AddressbookView *view = closure;
if (status == E_BOOK_STATUS_SUCCESS) {
set_book (view);
+ } else {
+ GtkWidget *warning_dialog, *label, *href;
+ 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.\n"
+ "This either means you have entered an\n"
+ "incorrect URI, or have tried to access an\n"
+ "LDAP server and don't have LDAP support"
+ "compiled in. If you've entered a URI, check the\n"
+ "the URI for correctness and reenter.\n"
+ "If not, you probably have attempted to access\n"
+ "an LDAP server. If you wish to be able to use\n"
+ "use LDAP, you'll need to download and install\n"
+ "OpenLDAP and recompile and install evolution.\n"));
+ 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 (label);
+
+ gnome_dialog_run (GNOME_DIALOG (warning_dialog));
+
+ gtk_object_destroy (GTK_OBJECT (warning_dialog));
}
}