diff options
author | Chris Toshok <toshok@ximian.com> | 2001-10-12 03:06:09 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-10-12 03:06:09 +0800 |
commit | 93012d3c36f8471790055e2b1bc0eb59b90765a6 (patch) | |
tree | a1151d5abedd862c19e687e3520a0bffe3852da9 /wombat/wombat.c | |
parent | aee129e2500a74c7df282205633c308ebfac789a (diff) | |
download | gsoc2013-evolution-93012d3c36f8471790055e2b1bc0eb59b90765a6.tar.gz gsoc2013-evolution-93012d3c36f8471790055e2b1bc0eb59b90765a6.tar.zst gsoc2013-evolution-93012d3c36f8471790055e2b1bc0eb59b90765a6.zip |
add wombat-private-moniker.[ch].
2001-10-11 Chris Toshok <toshok@ximian.com>
* Makefile.am (wombat_SOURCES): add wombat-private-moniker.[ch].
* GNOME_Evolution_WombatLDAP.oaf.in: add wombat-private
factory/moniker.
* GNOME_Evolution_WombatNOLDAP.oaf.in: same.
* wombat-private-moniker.[ch]: xmldb for private database -- non
configuration settings, basically.
svn path=/trunk/; revision=13593
Diffstat (limited to 'wombat/wombat.c')
-rw-r--r-- | wombat/wombat.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/wombat/wombat.c b/wombat/wombat.c index 3e40e2dc13..65f0b6f479 100644 --- a/wombat/wombat.c +++ b/wombat/wombat.c @@ -29,6 +29,7 @@ #endif #include "wombat-moniker.h" +#include "wombat-private-moniker.h" #define CAL_FACTORY_OAF_ID "OAFIID:GNOME_Evolution_Wombat_CalendarFactory" #define PAS_BOOK_FACTORY_OAF_ID "OAFIID:GNOME_Evolution_Wombat_ServerFactory" @@ -169,6 +170,22 @@ setup_config (int argc, char **argv) return TRUE; } +static gboolean +setup_private (int argc, char **argv) +{ + BonoboGenericFactory *factory; + char *oafiid = "OAFIID:Bonobo_Moniker_wombat_private_Factory"; + + factory = bonobo_generic_factory_new_multi (oafiid, + wombat_private_moniker_factory, + NULL); + + // bonobo_running_context_auto_exit_unref (BONOBO_OBJECT (factory)); + + + return TRUE; +} + static void setup_vfs (int argc, char **argv) { @@ -206,7 +223,7 @@ init_bonobo (int *argc, char **argv) int main (int argc, char **argv) { - gboolean did_pas=FALSE, did_pcs=FALSE, did_config=FALSE; + gboolean did_pas=FALSE, did_pcs=FALSE, did_config=FALSE, did_private=FALSE; bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR); textdomain (PACKAGE); @@ -222,7 +239,8 @@ main (int argc, char **argv) if (!( (did_pas = setup_pas (argc, argv)) && (did_pcs = setup_pcs (argc, argv)) - && (did_config = setup_config (argc, argv)))) { + && (did_config = setup_config (argc, argv)) + && (did_private = setup_private (argc, argv)))) { const gchar *failed = NULL; @@ -232,6 +250,8 @@ main (int argc, char **argv) failed = "PCS"; else if (!did_config) failed = "Config"; + else if (!did_private) + failed = "Private Config"; g_message ("main(): could not initialize Wombat service \"%s\"; terminating", failed); |