--- artdisplay/__init__.py	2006/07/06 08:44:56	1.1
+++ artdisplay/__init__.py	2006/07/06 09:08:04
@@ -24,6 +24,7 @@ from CoverArtDatabase import CoverArtDat
 
 FADE_STEPS = 10
 FADE_TOTAL_TIME = 1000
+ART_MISSING_ICON = "gnome-dev-cdrom-audio"
 
 class ArtDisplayPlugin (rb.Plugin):
 	def __init__ (self):
@@ -39,6 +40,7 @@ class ArtDisplayPlugin (rb.Plugin):
 		shell.add_widget (self.art_widget, rb.SHELL_UI_LOCATION_SIDEBAR)
 		self.sa_id = self.art_widget.connect ('size-allocate', self.size_allocated)
 		self.current_pixbuf = None
+		self.missing_pixbuf = None
 		self.art_db = CoverArtDatabase ()
 		self.resize_id = 0
 		self.resize_in_progress = False
@@ -90,6 +92,8 @@ class ArtDisplayPlugin (rb.Plugin):
 			self.update_displayed_art (False)
 			self.resize_id = 0
 			ret = False
+		self.missing_pixbuf = gtk.icon_theme_get_for_screen (self.art_widget.get_screen ()).load_icon (ART_MISSING_ICON, self.old_width, 0)
+		self.missing_pixbuf.saturate_and_pixelate (self.missing_pixbuf, 0.0, False)
 		return ret
 
 	def set_entry (self, entry):
@@ -103,7 +107,7 @@ class ArtDisplayPlugin (rb.Plugin):
 	def on_get_pixbuf_completed(self, entry, pixbuf):
 		# Set the pixbuf for the entry returned from the art db
 		if entry == self.current_entry:
-			self.set_current_art (pixbuf)
+			self.set_current_art (pixbuf or self.missing_pixbuf)
 
 	def fade_art (self, old_pixbuf, new_pixbuf):
 		self.fade_step += 1.0 / FADE_STEPS
