From 185727ca81eefeb6e8511625ac0f1b197e115412 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 1 Jun 2000 04:09:01 +0000 Subject: Quit when the shell exits. This is a kludge, but a pretty necessary one * component-factory.c (owner_unset_cb): Quit when the shell exits. This is a kludge, but a pretty necessary one until the refcounting bugs that keep the component from exiting properly are fixed. svn path=/trunk/; revision=3323 --- mail/ChangeLog | 6 ++++++ mail/component-factory.c | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 7e3e195bb0..a6355b4907 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2000-06-01 Dan Winship + + * component-factory.c (owner_unset_cb): Quit when the shell exits. + This is a kludge, but a pretty necessary one until the refcounting + bugs that keep the component from exiting properly are fixed. + 2000-05-31 Jeffrey Stedfast * mail-config.c: Partially implemented the source diff --git a/mail/component-factory.c b/mail/component-factory.c index c94356660d..cf67836827 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -83,13 +83,20 @@ create_view (EvolutionShellComponent *shell_component, static void owner_set_cb (EvolutionShellComponent *shell_component, - Evolution_Shell shell_interface) + Evolution_Shell shell_interface, + gpointer user_data) { g_print ("evolution-mail: Yeeeh! We have an owner!\n"); /* FIXME */ create_test_storage (shell_component); } +static void +owner_unset_cb (EvolutionShellComponent *shell_component, gpointer user_data) +{ + gtk_main_quit (); +} + /* The factory function. */ @@ -103,6 +110,8 @@ factory_fn (BonoboGenericFactory *factory, gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set", GTK_SIGNAL_FUNC (owner_set_cb), NULL); + gtk_signal_connect (GTK_OBJECT (shell_component), "owner_unset", + GTK_SIGNAL_FUNC (owner_unset_cb), NULL); return BONOBO_OBJECT (shell_component); } -- cgit v1.2.3