aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/pas
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-03-30 18:38:27 +0800
committerChris Lahey <clahey@src.gnome.org>2001-03-30 18:38:27 +0800
commitc5c0c7fe769ef3d5de61e6c37b26579e14b8c34a (patch)
treea98f5647f9fd612064590c25a4d53fb4a30ca872 /addressbook/backend/pas
parent90ed53edb0f3256a5d08e8dd0681938f4d83140d (diff)
downloadgsoc2013-evolution-c5c0c7fe769ef3d5de61e6c37b26579e14b8c34a.tar
gsoc2013-evolution-c5c0c7fe769ef3d5de61e6c37b26579e14b8c34a.tar.gz
gsoc2013-evolution-c5c0c7fe769ef3d5de61e6c37b26579e14b8c34a.tar.bz2
gsoc2013-evolution-c5c0c7fe769ef3d5de61e6c37b26579e14b8c34a.tar.lz
gsoc2013-evolution-c5c0c7fe769ef3d5de61e6c37b26579e14b8c34a.tar.xz
gsoc2013-evolution-c5c0c7fe769ef3d5de61e6c37b26579e14b8c34a.tar.zst
gsoc2013-evolution-c5c0c7fe769ef3d5de61e6c37b26579e14b8c34a.zip
Tell new clients that are added whether they're writable.
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. svn path=/trunk/; revision=9043
Diffstat (limited to 'addressbook/backend/pas')
-rw-r--r--addressbook/backend/pas/pas-backend-file.c8
1 files changed, 8 insertions, 0 deletions
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;
}