aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-05-09 07:05:01 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-05-09 07:05:01 +0800
commitb3b4d6c45d12d4e4bb3c6add6da5fb2c47aaa26c (patch)
treeee89ca927df7854169cac44b559bb43059ded597
parent39490b23e6b958bf04e9f9a7417b887ded703190 (diff)
downloadgsoc2013-evolution-b3b4d6c45d12d4e4bb3c6add6da5fb2c47aaa26c.tar.gz
gsoc2013-evolution-b3b4d6c45d12d4e4bb3c6add6da5fb2c47aaa26c.tar.zst
gsoc2013-evolution-b3b4d6c45d12d4e4bb3c6add6da5fb2c47aaa26c.zip
Actually quit when the shell is destroyed.
svn path=/trunk/; revision=2928
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/main.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 58ee77ce1c..5d897bd62b 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,10 @@
2000-05-08 Ettore Perazzoli <ettore@helixcode.com>
+ * main.c (destroy_cb): New function.
+ (main): Connect it to the `destroy' signal on the shell.
+
+2000-05-08 Ettore Perazzoli <ettore@helixcode.com>
+
* e-shortcuts.c (load_shortcuts): Const fix.
2000-05-08 Larry Ewing <lewing@helixcode.com>
diff --git a/shell/main.c b/shell/main.c
index 589281a3d1..5ab33823e9 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -36,6 +36,12 @@ no_views_left_cb (EShell *shell, gpointer data)
gtk_main_quit ();
}
+static void
+destroy_cb (GtkObject *object, gpointer data)
+{
+ gtk_main_quit ();
+}
+
#ifdef USING_OAF
@@ -104,6 +110,8 @@ main (int argc, char **argv)
gtk_signal_connect (GTK_OBJECT (shell), "no_views_left",
GTK_SIGNAL_FUNC (no_views_left_cb), NULL);
+ gtk_signal_connect (GTK_OBJECT (shell), "destroy",
+ GTK_SIGNAL_FUNC (destroy_cb), NULL);
e_shell_new_view (shell, NULL);