Glade memory leak fix on event ref editor. Bug 2616

svn: r12793
This commit is contained in:
Gary Burton 2009-07-12 20:55:08 +00:00
parent c2990a6cc1
commit cbd6031e47

View File

@ -162,43 +162,60 @@ class EditEventRef(EditReference):
self._add_tab(notebook, self.primtab) self._add_tab(notebook, self.primtab)
self._add_tab(notebook_ref, self.reftab) self._add_tab(notebook_ref, self.reftab)
self.track_ref_for_deletion("primtab")
self.track_ref_for_deletion("reftab")
self.srcref_list = self._add_tab( self.srcref_list = SourceEmbedList(self.dbstate,
notebook, self.uistate,
SourceEmbedList(self.dbstate,self.uistate,self.track,self.source)) self.track,
self.source)
self._add_tab(notebook, self.srcref_list)
self.track_ref_for_deletion("srcref_list")
self.attr_list = self._add_tab( self.attr_list = AttrEmbedList(self.dbstate,
notebook, self.uistate,
AttrEmbedList(self.dbstate, self.uistate, self.track, self.track,
self.source.get_attribute_list())) self.source.get_attribute_list())
self._add_tab(notebook, self.attr_list)
self.track_ref_for_deletion("attr_list")
self.note_tab = self._add_tab( self.note_tab = NoteTab(self.dbstate,
notebook, self.uistate,
NoteTab(self.dbstate, self.uistate, self.track, self.track,
self.source.get_note_list(), self.source.get_note_list(),
notetype=gen.lib.NoteType.EVENT)) notetype=gen.lib.NoteType.EVENT)
self._add_tab(notebook, self.note_tab)
self.track_ref_for_deletion("note_tab")
self.note_ref_tab = self._add_tab( self.note_ref_tab = NoteTab(self.dbstate,
notebook_ref, self.uistate,
NoteTab(self.dbstate, self.uistate, self.track, self.track,
self.source_ref.get_note_list(), self.source_ref.get_note_list(),
notetype=gen.lib.NoteType.EVENTREF)) notetype=gen.lib.NoteType.EVENTREF)
self._add_tab(notebook_ref, self.note_ref_tab)
self.track_ref_for_deletion("note_ref_tab")
self.gallery_tab = self._add_tab( self.gallery_tab = GalleryTab(self.dbstate,
notebook, self.uistate,
GalleryTab(self.dbstate, self.uistate, self.track, self.track,
self.source.get_media_list())) self.source.get_media_list())
self._add_tab(notebook, self.gallery_tab)
self.track_ref_for_deletion("gallery_tab")
self.backref_tab = self._add_tab( self.backref_tab = EventBackRefList(self.dbstate,
notebook, self.uistate,
EventBackRefList(self.dbstate, self.uistate, self.track, self.track,
self.db.find_backlink_handles(self.source.handle), self.db.find_backlink_handles(self.source.handle),
self.enable_warnbox)) self.enable_warnbox)
self._add_tab(notebook, self.backref_tab)
self.track_ref_for_deletion("backref_tab")
self.attr_ref_list = self._add_tab( self.attr_ref_list = AttrEmbedList(self.dbstate,
notebook_ref, self.uistate,
AttrEmbedList(self.dbstate, self.uistate, self.track, self.track,
self.source_ref.get_attribute_list())) self.source_ref.get_attribute_list())
self._add_tab(notebook_ref, self.attr_ref_list)
self.track_ref_for_deletion("attr_ref_list")
self._setup_notebook_tabs( notebook) self._setup_notebook_tabs( notebook)
self._setup_notebook_tabs( notebook_ref) self._setup_notebook_tabs( notebook_ref)