From 19deae4720e17c1f882374e68209b44bb9512fe4 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 15 Dec 2007 15:16:33 +0000 Subject: [PATCH] 2007-12-15 Douglas S. Blank * src/DataViews/_RelationView.py: Made suggestion by Stian: http://www.gramps-project.org/wiki/index.php?title=GEPS_002:_RelationView_Expand_and_Collapse#User_Contributions and addressed feature request #1404 svn: r9508 --- ChangeLog | 5 +++++ src/DataViews/_RelationView.py | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 64586688d..3ea4fee9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-15 Douglas S. Blank + * src/DataViews/_RelationView.py: Made suggestion by Stian: + http://www.gramps-project.org/wiki/index.php?title=GEPS_002:_RelationView_Expand_and_Collapse#User_Contributions + and addressed feature request #1404 + 2007-12-14 Benny Malengier * src/Editors/_EditEvent.py: first attribute tab THEN backref * src/DisplayTabs/_BackRefList.py: whitespace change diff --git a/src/DataViews/_RelationView.py b/src/DataViews/_RelationView.py index 04cbb8d84..8b0c61d57 100644 --- a/src/DataViews/_RelationView.py +++ b/src/DataViews/_RelationView.py @@ -926,8 +926,13 @@ class RelationshipView(PageView.PersonNavView): button = None hbox = gtk.HBox() - hbox.pack_start(GrampsWidgets.BasicLabel("%d." % index), - False, False, 0) + if child_should_be_linked: + l = GrampsWidgets.BasicLabel("%d." % index) + else: + l = GrampsWidgets.BasicLabel("> %d." % index) + l.set_width_chars(5) + l.set_alignment(1.0, 0.5) + hbox.pack_start(l, False, False, 0) hbox.pack_start(GrampsWidgets.LinkBox(link_label, button), False, False, 4) hbox.show() @@ -937,7 +942,7 @@ class RelationshipView(PageView.PersonNavView): value = self.info_string(handle) if value: l = GrampsWidgets.MarkupLabel(value) - l.set_padding(16, 0) + l.set_padding(48, 0) vbox.add(l) def write_data(self, box, title, start_col=_SDATA_START,