2006-05-12  Alex Roitman  <shura@gramps-project.org>
	* src/UndoHistory.py (gtk_color_to_str): Better color to str.
	* src/QuestionDialog.py (QuestionDialog2.__init__): Use the
	underline for labels.
	* src/plugins/ChangeNames.py: Fix WM.
	* src/plugins/PatchNames.py: Fix WM.

In po:
	* gramps.pot: Update.


svn: r6630
This commit is contained in:
Alex Roitman
2006-05-12 18:46:26 +00:00
parent 75d6553294
commit 9e68a4b550
7 changed files with 661 additions and 438 deletions

View File

@ -235,10 +235,9 @@ class UndoHistory(ManagedWindow.ManagedWindow):
self._update_ui()
def gtk_color_to_str(color):
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)
color_str = u"#%02x%02x%02x" % (color.red/256,
color.green/256,
color.blue/256)
return color_str
def get_colors(obj,state):