* src/plugins/DetAncestralReport.py: fix margin on note paragraph

* src/DateEdit.py: try using standard icons


svn: r5286
This commit is contained in:
Don Allingham 2005-10-06 22:09:38 +00:00
parent 4f86f7d28b
commit c21cf57674
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2005-10-06 Don Allingham <don@gramps-project.org>
* src/plugins/DetAncestralReport.py: fix margin on note paragraph
* src/DateEdit.py: try using standard icons
2005-10-06 Alex Roitman <shura@gramps-project.org>
* src/plugins/CmdRef.py: Work out Report docs.
* src/Report.py: Typo.

View File

@ -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):
"""

View File

@ -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()