aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/component-factory.c11
2 files changed, 16 insertions, 1 deletions
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 <danw@helixcode.com>
+
+ * 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 <fejj@helixcode.com>
* 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);
}