aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/backend/pas/pas-backend-file.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index be0475a5aa..d3e8385f19 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-30 Christopher James Lahey <clahey@ximian.com>
+
+ * backend/pas/pas-backend-file.c (pas_backend_file_add_client):
+ Tell new clients that are added whether they're writable.
+
2001-03-29 Jon Trowbridge <trow@ximian.com>
* printing/e-contact-print.c: Added #include <libgnome/gnome-paper.h>
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c
index 281c8f1c66..72192c312b 100644
--- a/addressbook/backend/pas/pas-backend-file.c
+++ b/addressbook/backend/pas/pas-backend-file.c
@@ -49,6 +49,7 @@ struct _PASBackendFilePrivate {
char *uri;
DB *file_db;
EList *book_views;
+ gboolean writable;
};
struct _PASBackendFileCursorPrivate {
@@ -1404,6 +1405,8 @@ pas_backend_file_load_uri (PASBackend *backend,
pas_book_report_writable (book, writable);
}
+ bf->priv->writable = writable;
+
return TRUE;
}
@@ -1458,10 +1461,14 @@ pas_backend_file_add_client (PASBackend *backend,
if (bf->priv->loaded) {
pas_book_respond_open (
book, GNOME_Evolution_Addressbook_BookListener_Success);
+ if (bf->priv->writable)
+ pas_book_report_writable (book, bf->priv->writable);
} else {
/* Open the book. */
pas_book_respond_open (
book, GNOME_Evolution_Addressbook_BookListener_Success);
+ if (bf->priv->writable)
+ pas_book_report_writable (book, bf->priv->writable);
}
return TRUE;
@@ -1585,6 +1592,7 @@ pas_backend_file_init (PASBackendFile *backend)
priv->clients = NULL;
priv->book_views = e_list_new((EListCopyFunc) pas_backend_file_book_view_copy, (EListFreeFunc) pas_backend_file_book_view_free, NULL);
priv->uri = NULL;
+ priv->writable = FALSE;
backend->priv = priv;
}