diff options
author | Lee Willis <lwillis@plus.net> | 2003-05-31 23:49:05 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-05-31 23:49:05 +0800 |
commit | dceaf45eba6df9ead25cfc8eebe49b8ae8790a6f (patch) | |
tree | b40231ff7425cbe04b79889f5a84bd8185b46364 | |
parent | 3e928a776227a424dd18f56c782f7e79709adbb1 (diff) | |
download | gsoc2013-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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/widgets/ephy-spinner.c | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2003-05-31 Lee Willis <lwillis@plus.net> + + * lib/widgets/ephy-spinner.c: + + Don't crash if we can't find the spinner image + 2003-05-30 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-spinner.c: (get_spinner_dimensions), 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) { |