From e7150f51635e89d8c4f6826e3683a447741ddfcb Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sun, 7 May 2000 07:18:55 +0000 Subject: Fix brainos so that the application quits after closing all the windows (shell views). svn path=/trunk/; revision=2865 --- shell/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'shell/main.c') diff --git a/shell/main.c b/shell/main.c index 1bf97e8c74..589281a3d1 100644 --- a/shell/main.c +++ b/shell/main.c @@ -31,8 +31,7 @@ static void -shell_destroy_cb (GtkObject *object, - gpointer data) +no_views_left_cb (EShell *shell, gpointer data) { gtk_main_quit (); } @@ -103,8 +102,8 @@ main (int argc, char **argv) exit (1); } - gtk_signal_connect (GTK_OBJECT (shell), "destroy", - GTK_SIGNAL_FUNC (shell_destroy_cb), NULL); + gtk_signal_connect (GTK_OBJECT (shell), "no_views_left", + GTK_SIGNAL_FUNC (no_views_left_cb), NULL); e_shell_new_view (shell, NULL); -- cgit