* src/DisplayTabs/_EmbeddedList.py: during rebuild, don't do select change

* src/DisplayTabs/_NoteTab.py: connect db note changes so tab updates
	* src/DisplayTabs/_ButtonTab.py: avoid double call of selection_change
	* src/DisplayTabs/_GrampsTab.py: method to add db connects, and set connects
	* src/Editors/_EditPrimary.py: on add tab pass db connection method
	* src/Editors/_EditSecondary.py: on add tab pass db connection method
	* src/Editors/_EditReference.py: on add tab pass db connection method

2007-10-21 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9229
This commit is contained in:
Benny Malengier
2007-10-21 18:25:44 +00:00
parent 6462f4b339
commit dc428df5bb
8 changed files with 78 additions and 6 deletions

@ -90,6 +90,7 @@ class ButtonTab(GrampsTab):
@param move_buttons: Add up and down button to the Notebook tab or not
@type name: bool
"""
self.dirty_selection = False
GrampsTab.__init__(self,dbstate, uistate, track, name)
self.tooltips = gtk.Tooltips()
self.create_buttons(share_button, move_buttons, jump_button)
@ -237,6 +238,10 @@ class ButtonTab(GrampsTab):
"""
# Comparing to None is important, as empty strings
# and 0 can be returned
# This method is called as callback on change, and can be called
# explicitly, dirty_selection must make sure they do not interact
if self.dirty_selection:
return
if self.get_selected() != None:
self.edit_btn.set_sensitive(True)
if self.jump_btn: