* src/Editors/_EditFamily.py: Handle marker type in UI

svn: r6388
This commit is contained in:
Don Allingham 2006-04-21 02:59:15 +00:00
parent 0210b056d8
commit 112a0aa332
3 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,5 @@
2006-04-20 Don Allingham <don@gramps-project.org>
* src/Editors/_EditFamily.py: Handle marker type in UI
* src/DataViews/_FamilyViews.py: clean up
* src/DataViews/_PedigreeViews.py: clean up
* src/RelLib/_Name.py: fix type on set_type

View File

@ -414,6 +414,12 @@ class EditFamily(EditPrimary):
self.obj.get_gramps_id,
self.db.readonly)
self.marker = MonitoredDataType(
self.top.get_widget('marker'),
self.obj.set_marker,
self.obj.get_marker,
self.db.readonly)
self.data_type = MonitoredDataType(
self.top.get_widget('marriage_type'),
self.obj.set_relationship,
@ -467,11 +473,6 @@ class EditFamily(EditPrimary):
GalleryTab(self.dbstate, self.uistate, self.track,
self.obj.get_media_list()))
# self.pref_list = self._add_tab(
# notebook,
# PersonRefEmbedList(self.dbstate, self.uistate, self.track,
# self.obj.child_ref_list))
self.lds_list = self._add_tab(
notebook,
FamilyLdsEmbedList(self.dbstate,self.uistate,self.track,
@ -660,7 +661,6 @@ class EditFamily(EditPrimary):
except Errors.WindowActiveError:
pass
# def father_clicked(self,obj):
# handle = self.obj.get_father_handle()
# if handle:

View File

@ -139,6 +139,7 @@ class EditPrimary(ManagedWindow.ManagedWindow):
return None
def data_has_changed(self):
if self.db.readonly:
return False
elif self.obj.handle: