diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-30 21:41:12 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-30 21:41:12 +0800 |
commit | 886713b8b1393dca9f9c9abe87ccb928eca8c0ef (patch) | |
tree | 5840a802acf3f9b04c20060f8697ab31bb9bc479 /addressbook/backend/ebook/e-book-view.c | |
parent | 0ae2ea2e320b1f1e1aaa640316908378e0a064dc (diff) | |
download | gsoc2013-evolution-886713b8b1393dca9f9c9abe87ccb928eca8c0ef.tar gsoc2013-evolution-886713b8b1393dca9f9c9abe87ccb928eca8c0ef.tar.gz gsoc2013-evolution-886713b8b1393dca9f9c9abe87ccb928eca8c0ef.tar.bz2 gsoc2013-evolution-886713b8b1393dca9f9c9abe87ccb928eca8c0ef.tar.lz gsoc2013-evolution-886713b8b1393dca9f9c9abe87ccb928eca8c0ef.tar.xz gsoc2013-evolution-886713b8b1393dca9f9c9abe87ccb928eca8c0ef.tar.zst gsoc2013-evolution-886713b8b1393dca9f9c9abe87ccb928eca8c0ef.zip |
Added "sequence_complete" signal.
2000-05-30 Christopher James Lahey <clahey@helixcode.com>
* backend/ebook/e-book-view-listener.c,
backend/ebook/e-book-view-listener.h, backend/ebook/e-book-view.c,
backend/ebook/e-book-view.h, backend/idl/addressbook.idl,
backend/pas/pas-backend-file.c, backend/pas/pas-backend-ldap.c,
backend/pas/pas-book-factory.c, backend/pas/pas-book-view.c,
backend/pas/pas-book-view.h: Added "sequence_complete" signal.
* printing/e-contact-print.c: Made printing wait for
"sequence_complete" signal and made it sort.
svn path=/trunk/; revision=3279
Diffstat (limited to 'addressbook/backend/ebook/e-book-view.c')
-rw-r--r-- | addressbook/backend/ebook/e-book-view.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/addressbook/backend/ebook/e-book-view.c b/addressbook/backend/ebook/e-book-view.c index 65a90b8ede..f00a2efb08 100644 --- a/addressbook/backend/ebook/e-book-view.c +++ b/addressbook/backend/ebook/e-book-view.c @@ -31,6 +31,7 @@ enum { CARD_CHANGED, CARD_REMOVED, CARD_ADDED, + SEQUENCE_COMPLETE, LAST_SIGNAL }; @@ -68,6 +69,13 @@ e_book_view_do_removed_event (EBookView *book_view, g_free(resp->id); } +static void +e_book_view_do_complete_event (EBookView *book_view, + EBookViewListenerResponse *resp) +{ + gtk_signal_emit (GTK_OBJECT (book_view), e_book_view_signals [SEQUENCE_COMPLETE]); +} + /* * Reading notices out of the EBookViewListener's queue. @@ -92,6 +100,9 @@ e_book_view_check_listener_queue (EBookViewListener *listener, EBookView *book_v case CardRemovedEvent: e_book_view_do_removed_event (book_view, resp); break; + case SequenceCompleteEvent: + e_book_view_do_complete_event (book_view, resp); + break; default: g_error ("EBookView: Unknown operation %d in listener queue!\n", resp->op); @@ -248,6 +259,14 @@ e_book_view_class_init (EBookViewClass *klass) GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); + e_book_view_signals [SEQUENCE_COMPLETE] = + gtk_signal_new ("sequence_complete", + GTK_RUN_LAST, + object_class->type, + GTK_SIGNAL_OFFSET (EBookViewClass, sequence_complete), + gtk_marshal_NONE__NONE, + GTK_TYPE_NONE, 0); + gtk_object_class_add_signals (object_class, e_book_view_signals, LAST_SIGNAL); |