2006-05-11 Alex Roitman <shura@gramps-project.org>

* src/UndoHistory.py (gtk_color_to_str): Correct byte color.



svn: r6623
This commit is contained in:
Alex Roitman 2006-05-12 00:54:17 +00:00
parent 46068b01c1
commit 03f4ed0409
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2006-05-11 Alex Roitman <shura@gramps-project.org>
* src/UndoHistory.py (gtk_color_to_str): Correct byte color.
2006-05-11 Don Allingham <don@gramps-project.org>
* src/PageView.py: fix search tuple
* src/GrampsWidgets.py: handle Marker type properly

View File

@ -225,9 +225,9 @@ class UndoHistory(ManagedWindow.ManagedWindow):
self._update_ui()
def gtk_color_to_str(color):
r = hex(256*color.red/65535).replace('0x','')
g = hex(256*color.green/65535).replace('0x','')
b = hex(256*color.blue/65535).replace('0x','')
r = hex(255*color.red/65535).replace('0x','')
g = hex(255*color.green/65535).replace('0x','')
b = hex(255*color.blue/65535).replace('0x','')
color_str =u'#%s%s%s' % (r,g,b)
return color_str