From 59f87c94870b050e5c02810e648db233dcfc55c6 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 6 May 2003 02:54:14 +0000 Subject: [PATCH] Patch for tabs from Billy Earney svn: r1496 --- src/gramps_main.py | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/gramps_main.py b/src/gramps_main.py index 875619838..bdf73e25f 100755 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -601,10 +601,7 @@ class Gramps: self.model2page = {} self.model_used = {} - self.pl_page = [ - ListModel.ListModel(self.pl_other, self.pl_titles, self.row_changed, - self.alpha_event, _sel_mode), - ] + self.pl_page = [ self.pl_page[-1] ] self.person_tree = self.pl_page[-1] self.person_list = self.pl_page[-1].tree @@ -1503,10 +1500,23 @@ class Gramps: except: print index else: - self.ptabs.insert_page(display,gtk.Label(pg),len(self.tab_list)) + #added by EARNEY on 5/5/2003 + #modified the block below because sometimes certain + #letters under people panel + #will not load properly after a quick add + #(ie, adding a parent under the family panel) + index=len(self.tab_list) + self.ptabs.insert_page(display,gtk.Label(pg),index) self.ptabs.set_show_tabs(1) - self.tab_list.append(pg) - self.pl_page = self.pl_page[0:-1] + [model,self.default_list] + self.tab_list.insert(index,pg) + self.pl_page.insert(index,model) + + #instead of the following.. + #self.ptabs.insert_page(display,gtk.Label(pg),len(self.tab_list)) + #self.ptabs.set_show_tabs(1) + #self.tab_list.append(pg) + #self.pl_page = self.pl_page[0:-1] + [model,self.default_list] + for index in range(0,len(self.tab_list)): model = self.alpha_page[self.tab_list[index]]