From be19c59c2e0f254538f72ba136d7524d8619045a Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 23 May 2001 09:19:07 +0000 Subject: add sequence_complete_id to EAddressbookModel and stop_state_changed to 2001-05-23 Chris Toshok * gui/widgets/e-addressbook-model.h: add sequence_complete_id to EAddressbookModel and stop_state_changed to EAddressbookModelClass. also, add prototype for e_addressbook_model_can_stop. * gui/widgets/e-addressbook-model.c (remove_book_view): disconnect from "sequence_complete", and set search_in_progress to FALSE. (sequence_complete): set search_in_progress to FALSE and emit "stop_state_changed." (e_addressbook_model_class_init): create the "stop_state_changed" signal. (e_addressbook_model_init): init stuff. (book_view_loaded): connect to "sequence_complete" signal. (book_view_loaded): set search_in_progress to TRUE and emit "stop_state_changed" (e_addressbook_model_stop): set search_in_progress to false, emit "stop_state_changed", and set our status to "Search Interrupted." (e_addressbook_model_can_stop): return search_in_progress. * gui/widgets/e-addressbook-view.c (e_addressbook_view_init): connect to the stop_state_changed signal on EAddressbookModel. (stop_state_changed): new function. (e_addressbook_view_can_stop): call e_addressbook_model_can_stop. * gui/component/addressbook.c (update_command_state): use e_addressbook_view_can_stop to set the sensitivity of the stop button. svn path=/trunk/; revision=9940 --- addressbook/gui/component/addressbook.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/component') diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index ac531d1f33..281549c462 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -663,7 +663,8 @@ set_status_message (EAddressbookView *eav, const char *message, AddressbookView else { printf ("setting message %s\n", message); GNOME_Evolution_ShellView_setMessage (shell_view_interface, - message, 0 /* XXX */, &ev); + message, + e_addressbook_view_can_stop (view->view), &ev); } CORBA_exception_free (&ev); -- cgit v1.2.3