aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
blob: 1c93579d85f4d5a759980559d16e15b84d162310 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
 * Main evolution shell application
 *
 * Authors:
 *   Miguel de Icaza (miguel@helixcode.com)
 *
 */
#include <config.h>
#include <gnome.h>
#include <libgnorba/gnorba.h>
#include <bonobo.h>
#include <e-util/e-gui-utils.h>
#include <e-util/e-cursors.h>
#include <glade/glade.h>
#include <glade/glade-xml.h>
#include "e-shell.h"
#include "e-shell-view.h"

int shell_debugging = 0;

poptContext ctx;

EShell *eshell;

const struct poptOption shell_popt_options [] = {
    { "debug", '\0', POPT_ARG_INT, &shell_debugging, 0,
      N_("Enables some debugging functions"), N_("LEVEL") },
        { NULL, '\0', 0, NULL, 0 }
};

static void
corba_init (int *argc, char *argv [])
{
    CORBA_Environment ev;
    
    CORBA_exception_init (&ev);
    gnome_CORBA_init_with_popt_table (
        "Evolution", VERSION, argc, argv,
        shell_popt_options, 0, &ctx, GNORBA_INIT_SERVER_FUNC, &ev);
    CORBA_exception_free (&ev);
    
    if (bonobo_init (gnome_CORBA_ORB (), NULL, NULL) == FALSE){
        e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
              _("Failed to initialize the Bonobo component system"));
        exit (1);
    }
}

static void
gui_init (void)
{
    e_cursors_init ();

    glade_gnome_init ();

    bonobo_activate ();
}

static void
gui_shutdown (void)
{
    /* shutdown */
    e_cursors_shutdown ();
}

static void
evolution_boot (void)
{
    EShellView *e_shell_view;

    eshell = e_shell_new ();
    e_shell_view = E_SHELL_VIEW (
        e_shell_view_new (eshell,
                  eshell->default_folders.inbox,
                  TRUE));
    gtk_signal_connect (GTK_OBJECT (e_shell_view), "destroy",
                GTK_SIGNAL_FUNC(gtk_main_quit),
                NULL);
    
    gtk_widget_show (GTK_WIDGET (e_shell_view));
}

int
main (int argc, char *argv [])
{
    bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR);
    textdomain (PACKAGE);

    corba_init (&argc, argv);
    gui_init ();

    evolution_boot ();
    
    gtk_main ();

    gui_shutdown ();

    return 0;
}
ef100239b3acb66f3e43378e5ea'>Remove useless NEED_ROOT and use proper USES=uidfixbapt2013-10-311-1/+1 * - Add stage supportswills2013-10-303-3/+0 * Assorted fixes to dependencies on various build options,mandree2013-10-271-9/+22 * - Support STAGEDIRsunpoet2013-10-271-1/+0 * Upgrade dnsmasq to new upstream release 2.67.mandree2013-10-263-5/+9 * - Update from 1.3.2 to 1.3.3 [1]danilo2013-10-253-18/+9 * - Update from 0.4.3 to 0.4.5danilo2013-10-251-1/+1 * Support stagingehaupt2013-10-234-12/+7 * Try and be consistent with what commands are silent and not in *install.mat2013-10-231-1/+1 * - By request undeprecate and unmark this port as BROKEN.eadler2013-10-221-2/+1 * - By request undeprecate and unmark this port as BROKEN.eadler2013-10-221-16/+8 * Sync port with bind98. Fix(?) gssapi_krb5 detection.timur2013-10-193-5/+28 * Deprecated some ports broken for more than 6 monthbapt2013-10-181-0/+3 * Upgrade to rc4, changes over rc3 (-: removed, +: added)mandree2013-10-182-3/+6 * dns/inadyn-mt: fix wrong install pathwg2013-10-161-1/+1 * - Update from 2.1.5 to 2.1.6danilo2013-10-162-3/+3 * 2013-10-15 www/rubygem-staticmatic: No longer maintained upstreambapt2013-10-155-264/+0 * Fix package name collisionbapt2013-10-142-3/+2 * The dns/py-ldns stopped building. Recent chenges in theerwin2013-10-142-1/+1215 * - Mark BROKEN, set DEPRECATED at maintainer's requesttabthorpe2013-10-121-0/+3 * - Dependence update (libsodium)danilo2013-10-111-0/+1 * - Convert to stagingmadpilot2013-10-104-16/+46 * - Convert LIB_DEPENDS to new syntax [1]danilo2013-10-103-30/+38 * Remove verbose flag from install command of three unmaintained portsmarino2013-10-071-2/+2 * Update to 2.67 release candidate #3.mandree2013-10-073-31/+22 * Rework linux rpm plist generation/installationantoine2013-10-061-1/+0 * - enable stage.ume2013-10-051-4/+5 * dns/powerdns-devel: update to 3.3wg2013-10-045-82/+67 * dns/opendnssec13: fix pkg-plist without AUDITORwg2013-10-032-5/+4 * - unbound was imported into base in r255597 with group 'unbound'. Chasebdrewery2013-10-031-0/+2 * dns/knot: update to 1.3.2wg2013-10-023-22/+22 * - Support STAGEDIRsunpoet2013-10-012-3/+2 * Convert to support STAGEDIR; misc. LIB_DEPENDS cleanups.mandree2013-10-012-24/+18 * - Update to 0.1.16sunpoet2013-09-302-4/+4 * Amend to pkg-config data, to fix FreeBSD 10-CURRENT build failures inmandree2013-09-291-0/+4 * - Change maintainer email to @FreeBSD.orgdanilo2013-09-282-217/+201 * Update to 9.8.6erwin2013-09-283-8/+10 * I no longer have specific need for this port and would prefer to maintain few...eadler2013-09-271-1/+1 * dns/opendnssec13: update to 1.3.15wg2013-09-253-17/+22 * powerdns-recursor: update to 3.5.3wg2013-09-254-19/+12 * dns/inadyn-mt: allow stagingwg2013-09-251-9/+12 * Add an option for filter-aaaaerwin2013-09-232-2/+12 * - Update to 1.4.21sem2013-09-234-13/+13 * Fix NO_STAGE attributionbapt2013-09-231-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-21165-220/+209 * SSP support has been added to ports with WITH_SSP for i386 and amd64bdrewery2013-09-201-0/+2 * Update to 9.9.4erwin2013-09-203-11/+10 * Update to 9.6-ESV-R10erwin2013-09-203-4/+6 * - Update to 1.10.0tabthorpe2013-09-204-22/+27 * dns/ddns: fix build without gccwg2013-09-201-0/+30 * Make GSSAPI support optionalerwin2013-09-172-2/+14 * Convert to new perl frameworkbapt2013-09-176-18/+13 * Update to 1.4.2mat2013-09-162-3/+3 * - convert to the new perl5 frameworkaz2013-09-131-2/+2 * - convert to the new perl5 frameworkaz2013-09-112-12/+6 * - convert to the new perl5 frameworkaz2013-09-1116-92/+37 * Update to 1.70.tobez2013-09-102-3/+3 * - Update to 1.2.8sunpoet2013-09-092-11/+11 * - Update to 13.1.0sunpoet2013-09-083-13/+12 * . introduce ICONV_CONFIGURE_BASE variable at Mk/Uses/iconv.mk. It's value isbsam2013-09-065-13/+9 * - Do not depend on security/openssl if openssl in base is sufficient.sem2013-09-052-12/+11 * Fix typobapt2013-09-051-1/+1 * Add an explicit dependency on pkgconfbapt2013-09-051-0/+1 * - Make ports use the libc provided iconv implementation on 10-CURRENTmadpilot2013-09-051-2/+13 * Mark IGNORE.mandree2013-09-051-1/+1 * - Unbroken removing leftover patch.lippe2013-09-041-19/+0 * Further cleanupfeld2013-09-032-25/+24 * - Update to 1.9.0lippe2013-09-024-74/+68 * - Resolve of using PERL_MODBUILD and PERL_CONFIGURE togetheraz2013-09-021-7/+3 * - Update to 0.997afeld2013-09-025-41/+21 * - Add WWWsunpoet2013-08-302-2/+1 * - Add RG link to pkg-descrsunpoet2013-08-291-1/+1 * - Use single space after WWW:sunpoet2013-08-291-1/+1 * - Use single space after WWW:sunpoet2013-08-296-6/+6 * - Cleanup Makefile headersunpoet2013-08-222-10/+2 * - Use RUN_DEPENDS:=BUILD_DEPENDSsunpoet2013-08-211-2/+1 * - Convert to new perl frameworksunpoet2013-08-212-2/+4 * dns/dnscrypt-proxy: update to 1.3.2wg2013-08-212-9/+11 * dns/zkt: update to 1.1.2wg2013-08-192-11/+5 * - Remove MAKE_JOBS_SAFE variableak2013-08-1512-12/+0 * - Convert to new perl frameworkaz2013-08-054-19/+11 * - Convert to new perl frameworkaz2013-08-032-8/+3 * - Convert to new perl frameworkmat2013-08-0319-59/+44 * - Convert to new perl frameworkaz2013-08-035-5/+10 * - Add MAN8 pages forgotten in previous commitmadpilot2013-08-011-2/+2 * - Update to 3.3madpilot2013-08-017-62/+85 * Fix build with clangbapt2013-08-011-5/+2 * - Convert to new Uses/perl5.mk frameworkaz2013-07-312-12/+6 * Fix my email address again, using proper @FreeBSD.org stylingfeld2013-07-291-2/+2 * Update the RPZ+RL patches for both versions.roberto2013-07-284-6/+6 * Put back the two patches for RPZ-RL that were removed during the previousroberto2013-07-272-0/+4 * Security update to fix CVE-2013-4854 as reported atroberto2013-07-274-12/+8 * - switch simple inline replacement from perl to sedaz2013-07-261-7/+5 * Update my email address throughout the treefeld2013-07-251-2/+2 * Remove MAKE_JOBS_SAFE which is now default.ehaupt2013-07-243-4/+0 * Add option to auto-add users for dnscache, tinydns and dnslog.lx2013-07-241-1/+7 * - Update to version 3.2.16pawel2013-07-233-6/+11 * Re-add dns/dnsperf and update to 2.0.0.0.hrs2013-07-215-0/+92 * Cleanup empty files and directories.rm2013-07-191-0/+0 * - update to 1.11.0rm2013-07-184-7/+15 * Clean up files which were being installed but not part of plist.rodrigc2013-07-181-0/+3 * Remove now excess verbiage.eadler2013-07-171-1/+0 * HostDB is a system for generating internal DNS zones,rodrigc2013-07-176-0/+171 * - Update to 3.3.r1miwi2013-07-156-66/+79 * Have dns/py-ldns only install the Python bits.mat2013-07-114-27/+36 * - Convert USE_GMAKE to USES=gmakeehaupt2013-07-091-5/+1 * Convert some of my ports from USE_GMAKE to USES=gmake.eadler2013-07-071-1/+2 * dns/opendnssec: update to 1.4.1wg2013-07-022-3/+3 * ddns is a lightweight UDP-based dynamic DNS updater.culot2013-07-019-0/+171 * PublicSuffix can parse and decompose a domain name into top level domain,swills2013-06-294-0/+23 * - Update to 2.03clsung2013-06-282-3/+3 * - Update to 1.3.1ak2013-06-272-7/+10 * Update to 1.27. [1]rakuco2013-06-262-5/+4 * dns/inadyn-mt: fix installwg2013-06-251-13/+18 * - Update to 1.54swills2013-06-23