From cff7c00db4d89347500feb9b6823796fb9d9c271 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 8 Mar 2005 22:02:49 +0000 Subject: [PATCH] * src/Marriage.py (on_add_clicked,on_event_update_clicked): Typos. * src/AddSpouse.py (select_spouse_clicked): Typo. svn: r4138 --- gramps2/ChangeLog | 3 +++ gramps2/src/AddSpouse.py | 7 ++++--- gramps2/src/Marriage.py | 10 ++++++---- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 0f78d715e..6b1f85a4b 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -5,6 +5,9 @@ * 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 * src/AddrEdit.py: Typo. * src/EditPerson.py (on_add_addr_clicked): Typos. diff --git a/gramps2/src/AddSpouse.py b/gramps2/src/AddSpouse.py index 129545c58..8ac47c728 100644 --- a/gramps2/src/AddSpouse.py +++ b/gramps2/src/AddSpouse.py @@ -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 @@ -264,7 +264,7 @@ class AddSpouse: if self.person.get_gender() == RelLib.Person.MALE: self.active_family.set_mother_handle(spouse.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_mother_handle(self.person.get_handle()) @@ -277,7 +277,8 @@ class AddSpouse: self.update(self.active_family) m = Marriage.Marriage(self.parent, self.active_family, 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() def relation_type_changed(self,obj): diff --git a/gramps2/src/Marriage.py b/gramps2/src/Marriage.py index 48d02ae65..9f02790e4 100644 --- a/gramps2/src/Marriage.py +++ b/gramps2/src/Marriage.py @@ -280,8 +280,8 @@ class Marriage: if family.get_note(): self.notes_buffer.set_text(family.get_note()) Utils.bold_label(self.notes_label) - if family.get_note_format() == 1: - self.preform.set_active(1) + if family.get_note_format() == 1: + self.preform.set_active(1) else: self.flowed.set_active(1) @@ -696,6 +696,7 @@ class Marriage: const.family_events,None,None, 0,self.event_edit_callback, const.defaultMarriageEvent, + self.db.readonly, self.update_sources) def on_event_update_clicked(self,obj): @@ -706,8 +707,9 @@ class Marriage: event = self.etree.get_object(node) name = Utils.family_name(self.family,self.db) EventEdit.EventEditor(self,name,const.marriageEvents, - const.family_events,event, - None,0,self.event_edit_callback, + const.family_events,event,None, + 0,self.event_edit_callback,None, + self.db.readonly, self.update_sources) def on_delete_clicked(self,obj):