aboutsummaryrefslogtreecommitdiffstats
path: root/notes/main.c
blob: 148b9a409d35500b104ec32bff62e5a2faccd3ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 *
 * Author:
 *   Anders Carlsson (andersca@gnu.org)
 *
 * (C) 2000 Ximian, Inc.
 */

#include <config.h>
#include <gnome.h>
#include <bonobo.h>
#include <liboaf/liboaf.h>

#include "e-util/e-gui-utils.h"
#include "component-factory.h"

static void
init_corba (gint argc, gchar **argv)
{
    gnome_init_with_popt_table ("evolution-notes-component", VERSION, argc, argv,
                    oaf_popt_options, 0, NULL);
    oaf_init (argc, argv);
}

static void
init_bonobo (void)
{
    if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) {
        e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
              _("Notes Component: Could not initialize bonobo"));
        exit (1);
    }
}

gint
main (gint argc, gchar **argv)
{
    bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR);
    textdomain (PACKAGE);

    init_corba (argc, argv);
    init_bonobo ();
    
    e_setup_base_dir ();
    
    notes_factory_init ();
    component_factory_init ();
    
    bonobo_main ();

    return 0;
}
.22.2.mezz2013-03-211-1/+2 * Update to 0.4.1makc2012-11-045-28/+5 * - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4miwi2012-06-061-2/+1 * - update png to 1.5.10dinoex2012-06-011-0/+1 * Fix build with Qt 4.7makc2012-05-131-0/+10 * Update to 0.4 for KDE 4makc2012-05-098-58/+58 * - Reassign to the heaptabthorpe2011-07-051-1/+1 * - Get Rid MD5 supportmiwi2011-03-201-1/+0 * Sync to new bsd.autotools.mkade2010-12-041-1/+1 * - Bump PORTREVISION to chase the update of net/yaz.araujo2010-08-101-1/+1 * - Bump PORTREVISION to chase the update of net/yazwen2010-05-261-2/+2 * - update to 1.4.1dinoex2010-03-281-0/+1 * Update to version 0.2.3markus2010-02-075-12/+41 * - update to jpeg-8dinoex2010-02-051-1/+1 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1