deskbar-applet r2474 - in branches/gnome-2-24: . deskbar/ui/cuemiac
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2474 - in branches/gnome-2-24: . deskbar/ui/cuemiac
- Date: Wed, 5 Nov 2008 14:58:44 +0000 (UTC)
Author: sebp
Date: Wed Nov 5 14:58:44 2008
New Revision: 2474
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2474&view=rev
Log:
Work around bug #552204 and ignore rows where match is None
Modified:
branches/gnome-2-24/ChangeLog
branches/gnome-2-24/deskbar/ui/cuemiac/CuemiacTreeView.py
Modified: branches/gnome-2-24/deskbar/ui/cuemiac/CuemiacTreeView.py
==============================================================================
--- branches/gnome-2-24/deskbar/ui/cuemiac/CuemiacTreeView.py (original)
+++ branches/gnome-2-24/deskbar/ui/cuemiac/CuemiacTreeView.py Wed Nov 5 14:58:44 2008
@@ -183,10 +183,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]