From 9b864ecd40139b61c89c459e4feb093c5b49d14b Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 16 May 2002 14:42:37 +0000 Subject: New. (create_component): Pass it as the @request_quit_fn to * component-factory.c (request_quit): New. (create_component): Pass it as the @request_quit_fn to evolution_shell_component_new(). * e-msg-composer.c: New local `all_composers'; keeps a list of all the composer windows created. Changed type of `parent_class' to BonoboWindowClass *. (do_exit): Cleaned up a bit. Raise the composer window before showing the message box dialog. (exit_dialog_cb): Removed. (e_msg_composer_request_close_all): New. (create_composer): Add the composer to the all_composers list and weakref it. (msg_composer_destroy_notify): GtkDestroyNotify function for the composer's weakref; remove the composer from the all_composers list. svn path=/trunk/; revision=16930 --- mail/component-factory.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mail/component-factory.c') diff --git a/mail/component-factory.c b/mail/component-factory.c index 439e11ccf5..8f6a8b9565 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -936,6 +936,13 @@ send_receive_cb (EvolutionShellComponent *shell_component, mail_send_receive (); } +static gboolean +request_quit (EvolutionShellComponent *shell_component, + void *closure) +{ + return e_msg_composer_request_close_all (); +} + static BonoboObject * create_component (void) { @@ -952,7 +959,8 @@ create_component (void) xfer_folder, populate_folder_context_menu, get_dnd_selection, - NULL, NULL); + request_quit, + NULL); gtk_signal_connect (GTK_OBJECT (shell_component), "send_receive", GTK_SIGNAL_FUNC (send_receive_cb), NULL); -- cgit v1.2.3