* src/Marriage.py (on_add_clicked,on_event_update_clicked): Typos.

* src/AddSpouse.py (select_spouse_clicked): Typo.


svn: r4138
This commit is contained in:
Alex Roitman 2005-03-08 22:02:49 +00:00
parent e1f5b991ec
commit 00e0bdfff8
3 changed files with 13 additions and 7 deletions

View File

@ -5,6 +5,9 @@
* src/DbPrompter.py (ImportDbPrompter.chooser): Typo. * src/DbPrompter.py (ImportDbPrompter.chooser): Typo.
* src/Marriage.py (on_add_clicked,on_event_update_clicked): Typos.
* src/AddSpouse.py (select_spouse_clicked): Typo.
2005-03-07 Alex Roitman <shura@alex.neuro.umn.edu> 2005-03-07 Alex Roitman <shura@alex.neuro.umn.edu>
* src/AddrEdit.py: Typo. * src/AddrEdit.py: Typo.
* src/EditPerson.py (on_add_addr_clicked): Typos. * src/EditPerson.py (on_add_addr_clicked): Typos.

View File

@ -1,7 +1,7 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # 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 # 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 # it under the terms of the GNU General Public License as published by
@ -264,7 +264,7 @@ class AddSpouse:
if self.person.get_gender() == RelLib.Person.MALE: if self.person.get_gender() == RelLib.Person.MALE:
self.active_family.set_mother_handle(spouse.get_handle()) self.active_family.set_mother_handle(spouse.get_handle())
self.active_family.set_father_handle(self.person.get_handle()) self.active_family.set_father_handle(self.person.get_handle())
else: else:
self.active_family.set_father_handle(spouse.get_handle()) self.active_family.set_father_handle(spouse.get_handle())
self.active_family.set_mother_handle(self.person.get_handle()) self.active_family.set_mother_handle(self.person.get_handle())
@ -277,7 +277,8 @@ class AddSpouse:
self.update(self.active_family) self.update(self.active_family)
m = Marriage.Marriage(self.parent, self.active_family, m = Marriage.Marriage(self.parent, self.active_family,
self.parent.db, self.parent.new_after_edit, self.parent.db, self.parent.new_after_edit,
self.parent.family_view.load_family) self.parent.family_view.load_family,
self.parent.source_view.build_tree)
m.on_add_clicked() m.on_add_clicked()
def relation_type_changed(self,obj): def relation_type_changed(self,obj):

View File

@ -280,8 +280,8 @@ class Marriage:
if family.get_note(): if family.get_note():
self.notes_buffer.set_text(family.get_note()) self.notes_buffer.set_text(family.get_note())
Utils.bold_label(self.notes_label) Utils.bold_label(self.notes_label)
if family.get_note_format() == 1: if family.get_note_format() == 1:
self.preform.set_active(1) self.preform.set_active(1)
else: else:
self.flowed.set_active(1) self.flowed.set_active(1)
@ -696,6 +696,7 @@ class Marriage:
const.family_events,None,None, const.family_events,None,None,
0,self.event_edit_callback, 0,self.event_edit_callback,
const.defaultMarriageEvent, const.defaultMarriageEvent,
self.db.readonly,
self.update_sources) self.update_sources)
def on_event_update_clicked(self,obj): def on_event_update_clicked(self,obj):
@ -706,8 +707,9 @@ class Marriage:
event = self.etree.get_object(node) event = self.etree.get_object(node)
name = Utils.family_name(self.family,self.db) name = Utils.family_name(self.family,self.db)
EventEdit.EventEditor(self,name,const.marriageEvents, EventEdit.EventEditor(self,name,const.marriageEvents,
const.family_events,event, const.family_events,event,None,
None,0,self.event_edit_callback, 0,self.event_edit_callback,None,
self.db.readonly,
self.update_sources) self.update_sources)
def on_delete_clicked(self,obj): def on_delete_clicked(self,obj):