From bba20d60c23f015a4238c8d0e4b843f42c0642da Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 21 Jun 2006 02:43:19 +0000 Subject: [PATCH] fails, recalculate data, fix initial display of sidebar * src/ViewManager.py: handle post page creation initalization * src/PageView.py: handle post page creation initalization svn: r6929 --- ChangeLog | 4 +++- src/DataViews/_PersonView.py | 9 ++++++++- src/PageView.py | 3 +++ src/ViewManager.py | 1 + 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 70ef8044c..71d07c3fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2006-06-20 Don Allingham * src/DataViews/_PersonView.py (PersonView.person_updated): if surname - fails, recalculate data + fails, recalculate data, fix initial display of sidebar + * src/ViewManager.py: handle post page creation initalization + * src/PageView.py: handle post page creation initalization * src/Editors/_EditFamily.py: handle drag-n-drop for childrefs separately * src/Editors/_EditEvent.py: focus on date on open diff --git a/src/DataViews/_PersonView.py b/src/DataViews/_PersonView.py index fab972954..b25cf2112 100644 --- a/src/DataViews/_PersonView.py +++ b/src/DataViews/_PersonView.py @@ -277,9 +277,16 @@ class PersonView(PageView.PersonNavView): hpaned.pack_start(self.vbox, True, True) hpaned.pack_end(self.filter_pane, False, False) - return hpaned + def post(self): + if Config.get(Config.FILTER): + self.search_bar.hide() + self.filter_pane.show() + else: + self.search_bar.show() + self.filter_pane.hide() + def filter_clicked(self): self.generic_filter = self.filter_sidebar.get_filter() self.build_tree() diff --git a/src/PageView.py b/src/PageView.py index 0ca64b540..cf5e624ba 100644 --- a/src/PageView.py +++ b/src/PageView.py @@ -82,6 +82,9 @@ class PageView: def call_function(self, key): self.func_list.get(key)() + def post(self): + pass + def set_active(self): self.active = True if self.dirty: diff --git a/src/ViewManager.py b/src/ViewManager.py index 2f0424900..cec043e8b 100644 --- a/src/ViewManager.py +++ b/src/ViewManager.py @@ -605,6 +605,7 @@ class ViewManager: page.define_actions() page_display = page.get_display() page_display.show_all() + page.post() self.notebook.append_page(page_display, hbox) self.pages.append(page)