From dceaf45eba6df9ead25cfc8eebe49b8ae8790a6f Mon Sep 17 00:00:00 2001 From: Lee Willis Date: Sat, 31 May 2003 15:49:05 +0000 Subject: Don't crash if we can't find the spinner image 2003-05-31 Lee Willis * lib/widgets/ephy-spinner.c: Don't crash if we can't find the spinner image --- lib/widgets/ephy-spinner.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') 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) { -- cgit