From e57530cbab1283f8d8fc98d88569da08ad9c41b1 Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Sun, 21 Nov 2004 23:30:57 +0000 Subject: added message which gets prompted when user tries to access a book which 2004-11-21 Sivaiah Nallagatla * gui/widgets/eab-gui-util.c (eab_load_error_dialog) : added message which gets prompted when user tries to access a book which is not available in offline mode * gui/component/addressbook-config.c (eabc_general_offline) (offline_status_changed_cb) : added a new check box to properties page to mark a book for offline usage * gui/component/addressbook.c (load_source_cb) : do no try to authenticate in case of offline mode. (auth_required_cb) : new call back which gets called when backend sends notification for password to client svn path=/trunk/; revision=27952 --- addressbook/gui/widgets/eab-gui-util.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/widgets/eab-gui-util.c') diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index a88bd4cf82..90c103be16 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -86,7 +86,14 @@ eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status) uri = e_source_get_uri (source); - if (!strncmp (uri, "file:", 5)) { + if (status == E_BOOK_ERROR_OFFLINE_UNAVAILABLE) { + label_string = _("We were unable to open this addressbook. This either means " + "this book is not marked for offline usage or not yet downloaded " + "for offline usage. Please load the addressbook once in online mode " + "to download its conents"); + } + + else if (!strncmp (uri, "file:", 5)) { label_string = _("We were unable to open this addressbook. Please check that the " "path exists and that you have permission to access it."); -- cgit v1.2.3