diff options
author | René Stadler <mail@renestadler.de> | 2007-12-18 18:48:28 +0200 |
---|---|---|
committer | René Stadler <mail@renestadler.de> | 2007-12-18 18:48:28 +0200 |
commit | f39e3afaaa83b730709ffbcb77509a4e8992cdd5 (patch) | |
tree | 255d8681898d3c7b635d364a87874de758ee6b10 | |
parent | d098a1c973c2c21a2a15b359a37d4d28ad28b9ec (diff) |
Prevent crash with older bindings
-rw-r--r-- | GstDebugViewer/GUI.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/GstDebugViewer/GUI.py b/GstDebugViewer/GUI.py index addd86c..f119559 100644 --- a/GstDebugViewer/GUI.py +++ b/GstDebugViewer/GUI.py @@ -961,15 +961,20 @@ class MessageColumn (TextColumn): highlighters = self.highlighters id_ = self.id + # FIXME: This should be none; need to investigate + # `cellrenderertext.props.attributes = None' failure (param conversion + # error like `treeview.props.model = None'). + no_attrs = AttrList () + def message_data_func (props, row): props.text = row[id_] if not highlighters: - props.attributes = None + props.attributes = no_attrs for highlighter in highlighters.values (): ranges = highlighter (row) if not ranges: - props.attributes = None + props.attributes = no_attrs else: attrlist = AttrList () for start, end in ranges: |