3691: Make all views displaying names respond to nameformat-changed signals
svn: r14737
This commit is contained in:
parent
72afaa04bb
commit
5f133cd21b
@ -255,7 +255,6 @@ class ViewManager(CLIManager):
|
|||||||
self.button_handlers = []
|
self.button_handlers = []
|
||||||
self.buttons = []
|
self.buttons = []
|
||||||
self.merge_ids = []
|
self.merge_ids = []
|
||||||
self._key = None
|
|
||||||
self.toolactions = None
|
self.toolactions = None
|
||||||
self.tool_menu_ui_id = None
|
self.tool_menu_ui_id = None
|
||||||
self.reportactions = None
|
self.reportactions = None
|
||||||
@ -970,8 +969,6 @@ class ViewManager(CLIManager):
|
|||||||
self.active_page.set_active()
|
self.active_page.set_active()
|
||||||
self.notebook.set_current_page(current_cat)
|
self.notebook.set_current_page(current_cat)
|
||||||
self.notebook_cat[current_cat].set_current_page(current_cat_view)
|
self.notebook_cat[current_cat].set_current_page(current_cat_view)
|
||||||
self._key = self.uistate.connect('nameformat-changed',
|
|
||||||
self.active_page.build_tree)
|
|
||||||
else:
|
else:
|
||||||
#not one single view loaded
|
#not one single view loaded
|
||||||
WarningDialog(
|
WarningDialog(
|
||||||
@ -1200,10 +1197,6 @@ class ViewManager(CLIManager):
|
|||||||
gtk.main_iteration()
|
gtk.main_iteration()
|
||||||
|
|
||||||
self.active_page.change_page()
|
self.active_page.change_page()
|
||||||
if self._key:
|
|
||||||
self.uistate.disconnect(self._key)
|
|
||||||
self._key = self.uistate.connect(
|
|
||||||
'nameformat-changed', self.active_page.build_tree)
|
|
||||||
else:
|
else:
|
||||||
#no views loaded
|
#no views loaded
|
||||||
pass
|
pass
|
||||||
|
@ -138,6 +138,7 @@ class BasePersonView(ListView):
|
|||||||
}
|
}
|
||||||
|
|
||||||
config.connect("interface.filter", self.filter_toggle)
|
config.connect("interface.filter", self.filter_toggle)
|
||||||
|
uistate.connect('nameformat-changed', self.build_tree)
|
||||||
|
|
||||||
def navigation_type(self):
|
def navigation_type(self):
|
||||||
return 'Person'
|
return 'Person'
|
||||||
|
@ -122,8 +122,8 @@ class EventView(ListView):
|
|||||||
'<CONTROL>BackSpace' : self.key_delete,
|
'<CONTROL>BackSpace' : self.key_delete,
|
||||||
}
|
}
|
||||||
|
|
||||||
config.connect("interface.filter",
|
config.connect("interface.filter", self.filter_toggle)
|
||||||
self.filter_toggle)
|
uistate.connect('nameformat-changed', self.build_tree)
|
||||||
|
|
||||||
def navigation_type(self):
|
def navigation_type(self):
|
||||||
return 'Event'
|
return 'Event'
|
||||||
|
@ -114,8 +114,8 @@ class FamilyView(ListView):
|
|||||||
'<CONTROL>BackSpace' : self.key_delete,
|
'<CONTROL>BackSpace' : self.key_delete,
|
||||||
}
|
}
|
||||||
|
|
||||||
config.connect("interface.filter",
|
config.connect("interface.filter", self.filter_toggle)
|
||||||
self.filter_toggle)
|
uistate.connect('nameformat-changed', self.build_tree)
|
||||||
|
|
||||||
def navigation_type(self):
|
def navigation_type(self):
|
||||||
return 'Family'
|
return 'Family'
|
||||||
|
@ -659,6 +659,7 @@ class PedigreeView(NavigationView):
|
|||||||
|
|
||||||
self.dbstate = dbstate
|
self.dbstate = dbstate
|
||||||
self.dbstate.connect('database-changed', self.change_db)
|
self.dbstate.connect('database-changed', self.change_db)
|
||||||
|
uistate.connect('nameformat-changed', self.person_rebuild)
|
||||||
# Automatic resize
|
# Automatic resize
|
||||||
self.force_size = config.get('interface.pedview-tree-size')
|
self.force_size = config.get('interface.pedview-tree-size')
|
||||||
# Nice tree
|
# Nice tree
|
||||||
|
@ -140,6 +140,7 @@ class RelationshipView(NavigationView):
|
|||||||
}
|
}
|
||||||
|
|
||||||
dbstate.connect('database-changed', self.change_db)
|
dbstate.connect('database-changed', self.change_db)
|
||||||
|
uistate.connect('nameformat-changed', self.build_tree)
|
||||||
self.redrawing = False
|
self.redrawing = False
|
||||||
|
|
||||||
self.color = gtk.TextView().style.white
|
self.color = gtk.TextView().style.white
|
||||||
|
Loading…
Reference in New Issue
Block a user