deskbar-applet r2475 - in trunk: . deskbar/ui/cuemiac



Author: sebp
Date: Wed Nov  5 14:59:20 2008
New Revision: 2475
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2475&view=rev

Log:
Work around bug #552204 and ignore rows where match is None

Modified:
   trunk/ChangeLog
   trunk/deskbar/ui/cuemiac/CuemiacTreeView.py

Modified: trunk/deskbar/ui/cuemiac/CuemiacTreeView.py
==============================================================================
--- trunk/deskbar/ui/cuemiac/CuemiacTreeView.py	(original)
+++ trunk/deskbar/ui/cuemiac/CuemiacTreeView.py	Wed Nov  5 14:59:20 2008
@@ -184,10 +184,15 @@
             cell.set_property ("is-header", True)
             cell.set_property ("match-count", match.get_count ())
             cell.set_property ("cell-background-gdk", self.style.bg[gtk.STATE_NORMAL])
-        else:
+        elif isinstance(match, Match):
             cell.set_property ("is-header", False)
             cell.set_property ("has-more-actions", len(match.get_actions()) > 1)
             cell.set_property ("cell-background-gdk", self.style.base[gtk.STATE_NORMAL])
+        else:
+            LOGGER.error("This should never happen, see bug 552204")
+            cell.set_property ("is-header", False)
+            cell.set_property ("has-more-actions", False)
+            cell.set_property ("cell-background-gdk", self.style.base[gtk.STATE_NORMAL])
         
     def __on_show_actions_activated(self, widget, path):
         col = self.get_model().ACTIONS



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]