aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLee Willis <lwillis@plus.net>2003-05-31 23:49:05 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-31 23:49:05 +0800
commitdceaf45eba6df9ead25cfc8eebe49b8ae8790a6f (patch)
treeb40231ff7425cbe04b79889f5a84bd8185b46364 /lib
parent3e928a776227a424dd18f56c782f7e79709adbb1 (diff)
downloadgsoc2013-epiphany-dceaf45eba6df9ead25cfc8eebe49b8ae8790a6f.tar
gsoc2013-epiphany-dceaf45eba6df9ead25cfc8eebe49b8ae8790a6f.tar.gz
gsoc2013-epiphany-dceaf45eba6df9ead25cfc8eebe49b8ae8790a6f.tar.bz2
gsoc2013-epiphany-dceaf45eba6df9ead25cfc8eebe49b8ae8790a6f.tar.lz
gsoc2013-epiphany-dceaf45eba6df9ead25cfc8eebe49b8ae8790a6f.tar.xz
gsoc2013-epiphany-dceaf45eba6df9ead25cfc8eebe49b8ae8790a6f.tar.zst
gsoc2013-epiphany-dceaf45eba6df9ead25cfc8eebe49b8ae8790a6f.zip
Don't crash if we can't find the spinner image
2003-05-31 Lee Willis <lwillis@plus.net> * lib/widgets/ephy-spinner.c: Don't crash if we can't find the spinner image
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-spinner.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c
index 51bba77be..0cd867db7 100644
--- a/lib/widgets/ephy-spinner.c
+++ b/lib/widgets/ephy-spinner.c
@@ -226,7 +226,11 @@ select_spinner_image (EphySpinner *spinner)
GList *element;
if (spinner->details->timer_task == 0) {
- return g_object_ref (spinner->details->quiescent_pixbuf);
+ if (spinner->details->quiescent_pixbuf) {
+ return g_object_ref (spinner->details->quiescent_pixbuf);
+ } else {
+ return NULL;
+ }
}
if (spinner->details->image_list == NULL) {