* src/plugins/IndivComplete.py (write_fact): Enable translation

for the event name;
* (get_stylesheet_savefile): Change the name of xml file (and,
consequently, the target filename) -- was confused with family group.
* src/StyleEditor.py (save_paragraph): Call gfloat instead of float.
* src/TextDoc.py (SheetParser.startElement): Likewise.


svn: r1743
This commit is contained in:
Alex Roitman 2003-06-14 18:11:30 +00:00
parent 327d27811e
commit 2bfa45813f
3 changed files with 15 additions and 7 deletions

View File

@ -1,3 +1,11 @@
2003-06-14 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/IndivComplete.py (write_fact): Enable translation
for the event name;
* (get_stylesheet_savefile): Change the name of xml file (and,
consequently, the target filename) -- was confused with family group.
* src/StyleEditor.py (save_paragraph): Call gfloat instead of float.
* src/TextDoc.py (SheetParser.startElement): Likewise.
2003-06-14 Don Allingham <dallingham@users.sourceforge.net>
* src/preferences.glade: Don't immediately show preferences dialog
* src/GrampsCfg.py: Handle new callback for preferences dialog

View File

@ -269,9 +269,9 @@ class StyleEditor:
else:
p.set_alignment(TextDoc.PARA_ALIGN_JUSTIFY)
p.set_right_margin(float(self.top.get_widget("rmargin").get_text()))
p.set_left_margin(float(self.top.get_widget("lmargin").get_text()))
p.set_padding(float(self.top.get_widget("pad").get_text()))
p.set_right_margin(Utils.gfloat(self.top.get_widget("rmargin").get_text()))
p.set_left_margin(Utils.gfloat(self.top.get_widget("lmargin").get_text()))
p.set_padding(Utils.gfloat(self.top.get_widget("pad").get_text()))
p.set_top_border(self.top.get_widget("tborder").get_active())
p.set_left_border(self.top.get_widget("lborder").get_active())
p.set_right_border(self.top.get_widget("rborder").get_active())

View File

@ -907,10 +907,10 @@ class SheetParser(handler.ContentHandler):
self.f.set_underline(int(attrs['underline']))
self.f.set_color(cnv2color(attrs['color']))
elif tag == "para":
self.p.set_right_margin(float(attrs['rmargin']))
self.p.set_left_margin(float(attrs['lmargin']))
self.p.set_first_indent(float(attrs['first']))
self.p.set_padding(float(attrs['pad']))
self.p.set_right_margin(Utils.gfloat(attrs['rmargin']))
self.p.set_left_margin(Utils.gfloat(attrs['lmargin']))
self.p.set_first_indent(Utils.gfloat(attrs['first']))
self.p.set_padding(Utils.gfloat(attrs['pad']))
self.p.set_alignment(int(attrs['align']))
self.p.set_right_border(int(attrs['rborder']))
self.p.set_header_level(int(attrs['level']))