changeset 3e9c81e39c0e in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=3e9c81e39c0e description: fix make color string
diffstat:
src/gtkgui_helpers.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 52610a187771 -r 3e9c81e39c0e src/gtkgui_helpers.py --- a/src/gtkgui_helpers.py Sat Jan 05 23:06:59 2013 +0100 +++ b/src/gtkgui_helpers.py Sun Jan 06 03:57:53 2013 +0400 @@ -641,7 +641,8 @@ """ col = '#' for i in ('red', 'green', 'blue'): - h = hex(getattr(color, i) / (16*16)).split('x')[1] + h = hex(int(getattr(color, i) / (16*16))) + h = h.split('x')[1] if len(h) == 1: h = '0' + h col += h