From c21cf57674cd15e2f5042cc3b22254e96771121b Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 6 Oct 2005 22:09:38 +0000 Subject: [PATCH] * src/plugins/DetAncestralReport.py: fix margin on note paragraph * src/DateEdit.py: try using standard icons svn: r5286 --- gramps2/ChangeLog | 4 ++++ gramps2/src/DateEdit.py | 7 ++++--- gramps2/src/plugins/DetAncestralReport.py | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index e533a570d..3cd8c37ea 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-10-06 Don Allingham + * src/plugins/DetAncestralReport.py: fix margin on note paragraph + * src/DateEdit.py: try using standard icons + 2005-10-06 Alex Roitman * src/plugins/CmdRef.py: Work out Report docs. * src/Report.py: Typo. diff --git a/gramps2/src/DateEdit.py b/gramps2/src/DateEdit.py index c1c5d6567..45fc421f9 100644 --- a/gramps2/src/DateEdit.py +++ b/gramps2/src/DateEdit.py @@ -119,6 +119,7 @@ class DateEdit: self.parent_window = parent_window self.pixmap_obj = button_obj.get_child() + self.text_obj.connect('focus-out-event',self.parse_and_check) self.button_obj.connect('clicked',self.invoke_date_editor) @@ -130,11 +131,11 @@ class DateEdit: Check current date object and display LED indicating the validity. """ if self.date_obj.get_modifier() == Date.MOD_TEXTONLY: - self.pixmap_obj.set_from_pixbuf(self.bad) + self.pixmap_obj.set_from_pixbuf(self.pixmap_obj.render_icon(gtk.STOCK_DIALOG_ERROR,gtk.ICON_SIZE_MENU)) elif self.date_obj.is_regular(): - self.pixmap_obj.set_from_pixbuf(self.good) + self.pixmap_obj.set_from_pixbuf(self.pixmap_obj.render_icon(gtk.STOCK_YES,gtk.ICON_SIZE_MENU)) else: - self.pixmap_obj.set_from_pixbuf(self.caution) + self.pixmap_obj.set_from_pixbuf(self.pixmap_obj.render_icon(gtk.STOCK_DIALOG_WARNING,gtk.ICON_SIZE_MENU)) def parse_and_check(self,obj,val): """ diff --git a/gramps2/src/plugins/DetAncestralReport.py b/gramps2/src/plugins/DetAncestralReport.py index ca5155f56..311ea753d 100644 --- a/gramps2/src/plugins/DetAncestralReport.py +++ b/gramps2/src/plugins/DetAncestralReport.py @@ -668,7 +668,7 @@ class DetAncestorOptions(ReportOptions.ReportOptions): font.set(face=BaseDoc.FONT_SANS_SERIF,size=10,italic=0, bold=1) para = BaseDoc.ParagraphStyle() para.set_font(font) - para.set(first_indent=0.0,lmargin=0.0,pad=0.25) + para.set(first_indent=0.0,lmargin=1.0,pad=0.25) default_style.add_style("DAR-NoteHeader",para) para = BaseDoc.ParagraphStyle()