aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-05-16 22:42:37 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-05-16 22:42:37 +0800
commit9b864ecd40139b61c89c459e4feb093c5b49d14b (patch)
tree8de9ea52ac3d2a646bb6190655e1bcc615a6925c /mail/component-factory.c
parent442cb01bee426d4a716485759ea093c773f5321a (diff)
downloadgsoc2013-evolution-9b864ecd40139b61c89c459e4feb093c5b49d14b.tar
gsoc2013-evolution-9b864ecd40139b61c89c459e4feb093c5b49d14b.tar.gz
gsoc2013-evolution-9b864ecd40139b61c89c459e4feb093c5b49d14b.tar.bz2
gsoc2013-evolution-9b864ecd40139b61c89c459e4feb093c5b49d14b.tar.lz
gsoc2013-evolution-9b864ecd40139b61c89c459e4feb093c5b49d14b.tar.xz
gsoc2013-evolution-9b864ecd40139b61c89c459e4feb093c5b49d14b.tar.zst
gsoc2013-evolution-9b864ecd40139b61c89c459e4feb093c5b49d14b.zip
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
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c10
1 files changed, 9 insertions, 1 deletions
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);