diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-09-22 21:14:10 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-09-22 21:14:10 +0800 |
commit | 97502c28df8b4a419b7230c19338b087b161f423 (patch) | |
tree | b1c0e3eaa854990ed0f06f78ecd61d9ec8bd892a /addressbook/backend/ebook/e-book-view.c | |
parent | 2a20e41b574fa96a513a0a8faa4544cbef895146 (diff) | |
download | gsoc2013-evolution-97502c28df8b4a419b7230c19338b087b161f423.tar gsoc2013-evolution-97502c28df8b4a419b7230c19338b087b161f423.tar.gz gsoc2013-evolution-97502c28df8b4a419b7230c19338b087b161f423.tar.bz2 gsoc2013-evolution-97502c28df8b4a419b7230c19338b087b161f423.tar.lz gsoc2013-evolution-97502c28df8b4a419b7230c19338b087b161f423.tar.xz gsoc2013-evolution-97502c28df8b4a419b7230c19338b087b161f423.tar.zst gsoc2013-evolution-97502c28df8b4a419b7230c19338b087b161f423.zip |
Added a function to set the status message associated with a given view.
2000-09-22 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-book-view.c, backend/pas/pas-book-view.h: Added a
function to set the status message associated with a given view.
This is not yet implemented in the gui.
svn path=/trunk/; revision=5549
Diffstat (limited to 'addressbook/backend/ebook/e-book-view.c')
-rw-r--r-- | addressbook/backend/ebook/e-book-view.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/addressbook/backend/ebook/e-book-view.c b/addressbook/backend/ebook/e-book-view.c index f00a2efb08..6e0379f2cc 100644 --- a/addressbook/backend/ebook/e-book-view.c +++ b/addressbook/backend/ebook/e-book-view.c @@ -32,6 +32,7 @@ enum { CARD_REMOVED, CARD_ADDED, SEQUENCE_COMPLETE, + STATUS_MESSAGE, LAST_SIGNAL }; @@ -76,6 +77,15 @@ e_book_view_do_complete_event (EBookView *book_view, gtk_signal_emit (GTK_OBJECT (book_view), e_book_view_signals [SEQUENCE_COMPLETE]); } +static void +e_book_view_do_status_message_event (EBookView *book_view, + EBookViewListenerResponse *resp) +{ + gtk_signal_emit (GTK_OBJECT (book_view), e_book_view_signals [STATUS_MESSAGE], + resp->message); + g_free(resp->message); +} + /* * Reading notices out of the EBookViewListener's queue. @@ -103,6 +113,9 @@ e_book_view_check_listener_queue (EBookViewListener *listener, EBookView *book_v case SequenceCompleteEvent: e_book_view_do_complete_event (book_view, resp); break; + case StatusMessageEvent: + e_book_view_do_status_message_event (book_view, resp); + break; default: g_error ("EBookView: Unknown operation %d in listener queue!\n", resp->op); @@ -267,9 +280,24 @@ e_book_view_class_init (EBookViewClass *klass) gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); + e_book_view_signals [STATUS_MESSAGE] = + gtk_signal_new ("status_message", + GTK_RUN_LAST, + object_class->type, + GTK_SIGNAL_OFFSET (EBookViewClass, status_message), + gtk_marshal_NONE__STRING, + GTK_TYPE_NONE, 1, + GTK_TYPE_STRING); + gtk_object_class_add_signals (object_class, e_book_view_signals, LAST_SIGNAL); + klass->card_changed = NULL; + klass->card_added = NULL; + klass->card_removed = NULL; + klass->sequence_complete = NULL; + klass->status_message = NULL; + object_class->destroy = e_book_view_destroy; } |