* src/StyleEditor.py (draw,save_paragraph): Swap SERIF and SANS_SERIF.

svn: r3954
This commit is contained in:
Alex Roitman 2005-01-24 19:29:51 +00:00
parent 61d3f10766
commit c918e902db
2 changed files with 6 additions and 4 deletions

View File

@ -17,6 +17,8 @@
* src/plugins/TimeLine.py (define_graphics_styles): Add method.
* src/plugins/DesGraph.py: Add styles before initializing doc.
* src/StyleEditor.py (draw,save_paragraph): Swap SERIF and SANS_SERIF.
2005-01-23 Don Allingham <dallingham@users.sourceforge.net>
* src/BaseDoc.py: don't check for init on table or cell addition
* src/Report.py: Call doc.init() before write_report

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2004 Donald N. Allingham
# Copyright (C) 2000-2005 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -212,7 +212,7 @@ class StyleEditor:
font = p.get_font()
self.top.get_widget("size").set_value(font.get_size())
if font.get_type_face() == BaseDoc.FONT_SANS_SERIF:
if font.get_type_face() == BaseDoc.FONT_SERIF:
self.top.get_widget("roman").set_active(1)
else:
self.top.get_widget("swiss").set_active(1)
@ -258,9 +258,9 @@ class StyleEditor:
font.set_size(int(self.top.get_widget("size").get_value()))
if self.top.get_widget("roman").get_active():
font.set_type_face(BaseDoc.FONT_SANS_SERIF)
else:
font.set_type_face(BaseDoc.FONT_SERIF)
else:
font.set_type_face(BaseDoc.FONT_SANS_SERIF)
font.set_bold(self.top.get_widget("bold").get_active())
font.set_italic(self.top.get_widget("italic").get_active())