small bag with colour in config manager
in src/config.py we have:
384 col2 = self.default_msg_tree.rc_get_style().bg[gtk.STATE_ACTIVE]
and when
402 renderer.set_property('cell-background', col2)
but col2 it's object <type 'gtk.gdk.Color'>
then we open the properties in output we get GtkWarning:
/opt/gajim/src/config.py:402: GtkWarning: Don't know color `\<GdkColor at 0xa0741c0>'
renderer.set_property('cell-background', col2)
of course, seconf param shold be hex-colour-string...
'gtk.gdk.Color' have method 'to_string()'
This method is available in PyGTK 2.12 and above.
all works if
402c402
\< renderer.set_property('cell-background', col2)
---
> renderer.set_property('cell-background', col2.to_string())
or
@@ -399,7 +399,7 @@
col.set_attributes(renderer, text = 2)
renderer.connect('edited', self.on_default_msg_cell_edited)
renderer.set_property('editable', True)
- renderer.set_property('cell-background', col2)
+ renderer.set_property('cell-background', col2.to_string())
col = gtk.TreeViewColumn(_('Enabled'))
col.set_resizable(True)
self.default_msg_tree.append_column(col)