editor fixes

svn: r6191
This commit is contained in:
Don Allingham 2006-03-21 22:12:39 +00:00
parent 7238e04680
commit 5d34cd3446
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2006-03-21 Don Allingham <don@gramps-project.org>
* src/DisplayTabs.py: Send Attribute instead of None for new
object
* src/Editors/_EditAddress.py: specify callback
2006-03-21 Alex Roitman <shura@gramps-project.org>
* various: rename doc to data; move most of src/data to data.

View File

@ -41,7 +41,6 @@ try:
set()
except:
from sets import Set as set
print "set not used"
#-------------------------------------------------------------------------
#
@ -891,9 +890,10 @@ class AttrEmbedList(EmbeddedList):
from Editors import EditAttribute
pname = ''
attr_list = []
attr = RelLib.Attribute()
try:
EditAttribute(
self.dbstate, self.uistate, self.track, None,
self.dbstate, self.uistate, self.track, attr,
pname, attr_list, self.add_callback)
except Errors.WindowActiveError:
pass

View File

@ -66,7 +66,7 @@ class EditAddress(EditSecondary):
parent - The class that called the Address editor.
addr - The address that is to be edited
"""
EditSecondary.__init__(self, dbstate, uistate, track, addr)
EditSecondary.__init__(self, dbstate, uistate, track, addr, callback)
def _local_init(self):
self.top = gtk.glade.XML(const.gladeFile, "addr_edit","gramps")