In case of errors with fg_color, enormous amount of error messages. This patch

grabs wrong fg_color, and skips action, avoiding the error messages. Error goes to debug.


svn: r22608
This commit is contained in:
Benny Malengier 2013-06-25 22:07:43 +00:00
parent fdc766db72
commit a23408c7a5

View File

@ -285,7 +285,11 @@ class ListView(NavigationView):
function because we don't want to set the color of untagged rows.
'''
fg_color = model.get_value(iter_, model.color_column())
renderer.set_property('foreground', fg_color)
#for color errors, typically color column is badly set
if fg_color:
renderer.set_property('foreground', fg_color)
else:
_LOG.debug('Bad color set: ' + str(fg_color))
def set_active(self):
NavigationView.set_active(self)