Bug fixes for family view

svn: r863
This commit is contained in:
Don Allingham 2002-03-28 03:04:16 +00:00
parent 579aa3e6e1
commit 6fc6496df2
3 changed files with 92 additions and 74 deletions

View File

@ -1101,7 +1101,6 @@ class Person:
"""sets the main Family of the Person, the Family in which the
Person is a natural born child"""
print family,self.AltFamilyList
assert(family in self.AltFamilyList)
f = self.removeAltFamily(family)
if f:
self.AltFamilyList = [f] + self.AltFamilyList

View File

@ -4960,21 +4960,12 @@
<spacing>0</spacing>
<widget>
<class>GtkCList</class>
<name>fatherList</name>
<border_width>3</border_width>
<width>400</width>
<height>100</height>
<can_focus>True</can_focus>
<signal>
<name>select_row</name>
<handler>on_fatherList_select_row</handler>
</signal>
<columns>2</columns>
<column_widths>198,80</column_widths>
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type>
<class>GtkScrolledWindow</class>
<name>scrolledwindow33</name>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<child>
<padding>0</padding>
<expand>True</expand>
@ -4982,29 +4973,47 @@
</child>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label81</name>
<label>Name</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
<class>GtkCList</class>
<name>fatherList</name>
<border_width>3</border_width>
<width>400</width>
<height>100</height>
<can_focus>True</can_focus>
<signal>
<name>select_row</name>
<handler>on_fatherList_select_row</handler>
</signal>
<columns>2</columns>
<column_widths>198,80</column_widths>
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label82</name>
<label>Birth Date</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label81</name>
<label>Name</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label82</name>
<label>Birth Date</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
</widget>
</widget>
@ -5098,20 +5107,12 @@ Unknown
<spacing>0</spacing>
<widget>
<class>GtkCList</class>
<name>motherList</name>
<border_width>3</border_width>
<height>100</height>
<can_focus>True</can_focus>
<signal>
<name>select_row</name>
<handler>on_motherList_select_row</handler>
</signal>
<columns>2</columns>
<column_widths>198,80</column_widths>
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type>
<class>GtkScrolledWindow</class>
<name>scrolledwindow34</name>
<hscrollbar_policy>GTK_POLICY_AUTOMATIC</hscrollbar_policy>
<vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy>
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<child>
<padding>0</padding>
<expand>True</expand>
@ -5119,29 +5120,46 @@ Unknown
</child>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label84</name>
<label>Name</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
<class>GtkCList</class>
<name>motherList</name>
<border_width>3</border_width>
<height>100</height>
<can_focus>True</can_focus>
<signal>
<name>select_row</name>
<handler>on_motherList_select_row</handler>
</signal>
<columns>2</columns>
<column_widths>198,80</column_widths>
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
<show_titles>True</show_titles>
<shadow_type>GTK_SHADOW_IN</shadow_type>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label85</name>
<label>Birth Date</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label84</name>
<label>Name</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
<widget>
<class>GtkLabel</class>
<child_name>CList:title</child_name>
<name>label85</name>
<label>Birth Date</label>
<justify>GTK_JUSTIFY_CENTER</justify>
<wrap>False</wrap>
<xalign>0.5</xalign>
<yalign>0.5</yalign>
<xpad>0</xpad>
<ypad>0</ypad>
</widget>
</widget>
</widget>

View File

@ -1381,6 +1381,7 @@ class Gramps:
mymap = {}
mynmap = {}
list = []
sel = 0
for f in self.active_person.getFamilyList():
if self.active_person == f.getFather():
if f.getMother() == None: