aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
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 /mail/component-factory.c
parentf0a948ea3284d026a0c0141498e76bc5f9c79a0f (diff)
downloadgsoc2013-evolution-185727ca81eefeb6e8511625ac0f1b197e115412.tar.gz
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
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c11
1 files changed, 10 insertions, 1 deletions
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);
}