aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-05-07 14:47:44 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-05-07 14:47:44 +0800
commit83a766e5af1226d93d67476ea73bce921c681f0e (patch)
treea5d72ae4264bdc87a3b24aa50d98cc02ff62e1fd /shell/main.c
parentcf022042c82501ba50622b144829a4ce9e301ecb (diff)
downloadgsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.tar
gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.tar.gz
gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.tar.bz2
gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.tar.lz
gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.tar.xz
gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.tar.zst
gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.zip
Machinery for quitting and handling the relationship between a shell
and its views. svn path=/trunk/; revision=2862
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/shell/main.c b/shell/main.c
index 9c914c4dce..1bf97e8c74 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -29,6 +29,15 @@
#include "e-shell.h"
+
+static void
+shell_destroy_cb (GtkObject *object,
+ gpointer data)
+{
+ gtk_main_quit ();
+}
+
+
#ifdef USING_OAF
#include <liboaf/liboaf.h>
@@ -88,6 +97,14 @@ main (int argc, char **argv)
}
shell = e_shell_new (evolution_directory);
+ if (shell == NULL) {
+ e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ _("Cannot initialize the Evolution shell."));
+ exit (1);
+ }
+
+ gtk_signal_connect (GTK_OBJECT (shell), "destroy",
+ GTK_SIGNAL_FUNC (shell_destroy_cb), NULL);
e_shell_new_view (shell, NULL);