diff options
author | JP Rosevear <jpr@ximian.com> | 2001-06-20 07:11:51 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-06-20 07:11:51 +0800 |
commit | 31ec46f9fd5d7caa6dc407dba4d93ad655888db2 (patch) | |
tree | 88077d12db402a2ddf1c10d819db543dee062054 /calendar/gui/control-factory.c | |
parent | 991d25c1877401228d4905a382edaf3cc75b9031 (diff) | |
download | gsoc2013-evolution-31ec46f9fd5d7caa6dc407dba4d93ad655888db2.tar gsoc2013-evolution-31ec46f9fd5d7caa6dc407dba4d93ad655888db2.tar.gz gsoc2013-evolution-31ec46f9fd5d7caa6dc407dba4d93ad655888db2.tar.bz2 gsoc2013-evolution-31ec46f9fd5d7caa6dc407dba4d93ad655888db2.tar.lz gsoc2013-evolution-31ec46f9fd5d7caa6dc407dba4d93ad655888db2.tar.xz gsoc2013-evolution-31ec46f9fd5d7caa6dc407dba4d93ad655888db2.tar.zst gsoc2013-evolution-31ec46f9fd5d7caa6dc407dba4d93ad655888db2.zip |
add auto exit unref
2001-06-19 JP Rosevear <jpr@ximian.com>
* gui/control-factory.c (control_factory_init): add auto exit unref
* gui/component-factory.c (destroy_cb): destroy our selves if we
have no more shells
(component_factory_init): add auto exit unref
svn path=/trunk/; revision=10312
Diffstat (limited to 'calendar/gui/control-factory.c')
-rw-r--r-- | calendar/gui/control-factory.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/control-factory.c b/calendar/gui/control-factory.c index be41f9d420..47704f8cae 100644 --- a/calendar/gui/control-factory.c +++ b/calendar/gui/control-factory.c @@ -27,6 +27,7 @@ #include <bonobo/bonobo-control.h> #include <bonobo/bonobo-generic-factory.h> #include <bonobo/bonobo-persist-file.h> +#include <bonobo/bonobo-context.h> #include <glade/glade.h> #include <liboaf/liboaf.h> @@ -61,7 +62,6 @@ control_activate_cb (BonoboControl *control, gboolean activate, gpointer data) calendar_control_deactivate (control, gcal); } - static void get_prop (BonoboPropertyBag *bag, BonoboArg *arg, @@ -156,7 +156,8 @@ control_factory_init (void) return; factory = bonobo_generic_factory_new (CONTROL_FACTORY_ID, control_factory_fn, NULL); - + bonobo_running_context_auto_exit_unref (BONOBO_OBJECT (factory)); + if (factory == NULL) g_error ("I could not register a Calendar control factory."); } |