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
This commit is contained in:
Don Allingham 2006-06-21 02:43:19 +00:00
parent ead9d7c761
commit bba20d60c2
4 changed files with 15 additions and 2 deletions

View File

@ -1,6 +1,8 @@
2006-06-20 Don Allingham <don@gramps-project.org>
* 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

View File

@ -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()

View File

@ -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:

View File

@ -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)