Unref our copy, and then destroy.

2001-01-13  Miguel de Icaza  <miguel@gnu.org>

	* e-shell.c (e_shell_construct): Unref our copy, and then destroy.

	* e-splash.c (e_splash_set_icon_highlight): Do not execute code if
	we have been destroyed.
	(e_splash_add_icon): ditto.

svn path=/trunk/; revision=7475
This commit is contained in:
Miguel de Icaza
2001-01-13 06:21:49 +00:00
committed by Miguel de Icaza
parent f88c5b4073
commit e4eaa198dd
3 changed files with 19 additions and 0 deletions

View File

@ -710,6 +710,9 @@ e_shell_construct (EShell *shell,
} else {
splash = e_splash_new ();
gtk_widget_show (splash);
/* Keep our own reference */
gtk_object_ref (GTK_OBJECT (splash));
}
while (gtk_events_pending ())
@ -753,6 +756,7 @@ e_shell_construct (EShell *shell,
g_free (shortcut_path);
sleep (2);
gtk_widget_unref (splash);
gtk_widget_destroy (splash);
return TRUE;