Index: deskbar/ui/cuemiac/CuemiacTreeView.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/ui/cuemiac/CuemiacTreeView.py,v
retrieving revision 1.7
diff -u -r1.7 CuemiacTreeView.py
--- deskbar/ui/cuemiac/CuemiacTreeView.py	2 Aug 2006 20:38:14 -0000	1.7
+++ deskbar/ui/cuemiac/CuemiacTreeView.py	18 Oct 2006 13:16:52 -0000
@@ -282,15 +282,19 @@
 	def __get_match_icon_for_cell (self, column, cell, model, iter, data=None):
 	
 		match = model[iter][model.MATCHES]
+
 		
 		if match.__class__ == CuemiacCategory:
 			cell.set_property ("pixbuf", None)
 			cell.set_property ("cell-background-gdk", self.style.bg[gtk.STATE_NORMAL])
 			
-		else:
+		elif match.__class__==tuple:
 			cell.set_property ("cell-background-gdk", self.style.base[gtk.STATE_NORMAL])
 			qstring, match_obj = match
 			cell.set_property ("pixbuf", match_obj.get_icon())
+		else:
+			raise Exception ("Match object of unexpected type: \
+					%s", match.__class__)
 
 		
 	def __get_match_title_for_cell (self, column, cell, model, iter, data=None):
