diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-03-30 18:38:27 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-03-30 18:38:27 +0800 |
commit | c5c0c7fe769ef3d5de61e6c37b26579e14b8c34a (patch) | |
tree | a98f5647f9fd612064590c25a4d53fb4a30ca872 | |
parent | 90ed53edb0f3256a5d08e8dd0681938f4d83140d (diff) | |
download | gsoc2013-evolution-c5c0c7fe769ef3d5de61e6c37b26579e14b8c34a.tar.gz 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
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/backend/pas/pas-backend-file.c | 8 |
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; } |