From ef7f7e66a7724ee47d5a5110722f7890473d250b Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 14 Feb 2002 06:04:47 +0000 Subject: [PATCH] Fixed update after adding additional data to a new child svn: r773 --- src/AutoComp.py | 4 ++-- src/EditPerson.glade | 2 +- src/SelectChild.py | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/AutoComp.py b/src/AutoComp.py index b4af82602..c2deef801 100644 --- a/src/AutoComp.py +++ b/src/AutoComp.py @@ -25,6 +25,7 @@ strings as the possible completions. import string import gtk +import GDK cnv = string.lower @@ -104,8 +105,7 @@ class AutoCombo(AutoCompBase): def timer_callback(self,entry): """ - The workhors -e routine of file completion. This routine grabs the + The workhorse routine of file completion. This routine grabs the current text of the entry box, and grubs through the list item looking for any case insensitive matches. This routine relies on public knowledge of the GtkEntry data structure, not on any private diff --git a/src/EditPerson.glade b/src/EditPerson.glade index cb969e4a0..fda61daa7 100644 --- a/src/EditPerson.glade +++ b/src/EditPerson.glade @@ -895,7 +895,7 @@ False True False - True + False False diff --git a/src/SelectChild.py b/src/SelectChild.py index 3d8128026..8eca25aea 100644 --- a/src/SelectChild.py +++ b/src/SelectChild.py @@ -387,10 +387,13 @@ class NewChild: utils.destroy_passed_object(obj) self.new_child = person + def other_update(self,arg1,arg2): + self.update(None,self.new_child) + def on_edit_new_child(self,obj): import EditPerson self.on_addchild_ok_clicked(obj) - EditPerson.EditPerson(self.new_child,self.db) + EditPerson.EditPerson(self.new_child,self.db,self.other_update)