aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-06-01 12:09:01 +0800
committerDan Winship <danw@src.gnome.org>2000-06-01 12:09:01 +0800
commit185727ca81eefeb6e8511625ac0f1b197e115412 (patch)
tree333110eccee4d966fea6197aa404a1baaa01d411
parentf0a948ea3284d026a0c0141498e76bc5f9c79a0f (diff)
downloadgsoc2013-evolution-185727ca81eefeb6e8511625ac0f1b197e115412.tar
gsoc2013-evolution-185727ca81eefeb6e8511625ac0f1b197e115412.tar.gz
gsoc2013-evolution-185727ca81eefeb6e8511625ac0f1b197e115412.tar.bz2
gsoc2013-evolution-185727ca81eefeb6e8511625ac0f1b197e115412.tar.lz
gsoc2013-evolution-185727ca81eefeb6e8511625ac0f1b197e115412.tar.xz
gsoc2013-evolution-185727ca81eefeb6e8511625ac0f1b197e115412.tar.zst
gsoc2013-evolution-185727ca81eefeb6e8511625ac0f1b197e115412.zip
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
-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);
}