aboutsummaryrefslogtreecommitdiffstats
path: root/mail/main.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-04-29 06:21:06 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-04-29 06:21:06 +0800
commite11f08d0481797a215c5b1837a4cc18003dd082d (patch)
tree3692471d179bd27356f29f04a601f541cb17d39b /mail/main.c
parent8283ee1835f02d738dbc7336e36dcb0a75ce052c (diff)
downloadgsoc2013-evolution-e11f08d0481797a215c5b1837a4cc18003dd082d.tar
gsoc2013-evolution-e11f08d0481797a215c5b1837a4cc18003dd082d.tar.gz
gsoc2013-evolution-e11f08d0481797a215c5b1837a4cc18003dd082d.tar.bz2
gsoc2013-evolution-e11f08d0481797a215c5b1837a4cc18003dd082d.tar.lz
gsoc2013-evolution-e11f08d0481797a215c5b1837a4cc18003dd082d.tar.xz
gsoc2013-evolution-e11f08d0481797a215c5b1837a4cc18003dd082d.tar.zst
gsoc2013-evolution-e11f08d0481797a215c5b1837a4cc18003dd082d.zip
Fix broken OAF patch for the GNORBA case.
svn path=/trunk/; revision=2676
Diffstat (limited to 'mail/main.c')
-rw-r--r--mail/main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mail/main.c b/mail/main.c
index 2102a153ff..48a207d3b5 100644
--- a/mail/main.c
+++ b/mail/main.c
@@ -20,11 +20,11 @@
#include <liboaf/liboaf.h>
static void
-init_corba (int argc, char *argv [])
+init_corba (int *argc, char *argv [])
{
- gnome_init_with_popt_table ("evolution-mail-component", VERSION, argc, argv,
+ gnome_init_with_popt_table ("evolution-mail-component", VERSION, *argc, argv,
oaf_popt_options, 0, NULL);
- oaf_init (argc, argv);
+ oaf_init (*argc, argv);
}
#else /* USING_OAF */
@@ -40,7 +40,7 @@ init_corba (int *argc, char *argv [])
gnome_CORBA_init_with_popt_table (
"evolution-mail-component", "1.0",
- &argc, argv, NULL, 0, NULL, GNORBA_INIT_SERVER_FUNC, &ev);
+ argc, argv, NULL, 0, NULL, GNORBA_INIT_SERVER_FUNC, &ev);
CORBA_exception_free (&ev);
}
@@ -48,10 +48,8 @@ init_corba (int *argc, char *argv [])
#endif /* USING_OAF */
static void
-init_bonobo (int argc, char **argv)
+init_bonobo (void)
{
- init_corba (argc, argv);
-
if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE){
e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
_("Mail Component: I could not initialize Bonobo"));
@@ -65,7 +63,9 @@ main (int argc, char *argv [])
bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR);
textdomain (PACKAGE);
- init_bonobo (argc, argv);
+ init_corba (&argc, argv);
+ init_bonobo ();
+
glade_gnome_init ();
session_init ();