diff options
author | Miguel de Icaza <miguel@gnu.org> | 2001-01-13 14:21:49 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2001-01-13 14:21:49 +0800 |
commit | e4eaa198dd1224899c2a1f3d6887a143346c1908 (patch) | |
tree | 6f147f1cddd266646585824a0d0d61e2767e6055 /shell/e-splash.c | |
parent | f88c5b4073c70a294157094d2108795c3f160d32 (diff) | |
download | gsoc2013-evolution-e4eaa198dd1224899c2a1f3d6887a143346c1908.tar.gz gsoc2013-evolution-e4eaa198dd1224899c2a1f3d6887a143346c1908.tar.zst gsoc2013-evolution-e4eaa198dd1224899c2a1f3d6887a143346c1908.zip |
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
Diffstat (limited to 'shell/e-splash.c')
-rw-r--r-- | shell/e-splash.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/e-splash.c b/shell/e-splash.c index 33f5412455..3ecb10fa99 100644 --- a/shell/e-splash.c +++ b/shell/e-splash.c @@ -321,6 +321,7 @@ e_splash_construct (ESplash *splash, gtk_window_set_position (GTK_WINDOW (splash), GTK_WIN_POS_CENTER); gtk_window_set_policy (GTK_WINDOW (splash), FALSE, FALSE, FALSE); gtk_window_set_default_size (GTK_WINDOW (splash), image_width, image_height); + } /** @@ -369,6 +370,9 @@ e_splash_add_icon (ESplash *splash, g_return_val_if_fail (E_IS_SPLASH (splash), 0); g_return_val_if_fail (icon_pixbuf != NULL, 0); + if (GTK_OBJECT_DESTROYED (splash)) + return 0; + priv = splash->priv; icon = icon_new (splash, icon_pixbuf); @@ -400,6 +404,9 @@ e_splash_set_icon_highlight (ESplash *splash, g_return_if_fail (splash != NULL); g_return_if_fail (E_IS_SPLASH (splash)); + if (GTK_OBJECT_DESTROYED (splash)) + return; + priv = splash->priv; icon = (Icon *) g_list_nth (priv->icons, num)->data; |