Actually quit when the shell is destroyed.
svn path=/trunk/; revision=2928
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2000-05-08 Ettore Perazzoli <ettore@helixcode.com>
|
||||||
|
|
||||||
* e-shortcuts.c (load_shortcuts): Const fix.
|
* e-shortcuts.c (load_shortcuts): Const fix.
|
||||||
|
@ -36,6 +36,12 @@ no_views_left_cb (EShell *shell, gpointer data)
|
|||||||
gtk_main_quit ();
|
gtk_main_quit ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
destroy_cb (GtkObject *object, gpointer data)
|
||||||
|
{
|
||||||
|
gtk_main_quit ();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef USING_OAF
|
#ifdef USING_OAF
|
||||||
|
|
||||||
@ -104,6 +110,8 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT (shell), "no_views_left",
|
gtk_signal_connect (GTK_OBJECT (shell), "no_views_left",
|
||||||
GTK_SIGNAL_FUNC (no_views_left_cb), NULL);
|
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);
|
e_shell_new_view (shell, NULL);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user