From 7e88c6c03702296ef04b5d6539f79a328efb6eb5 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 21 Apr 2006 19:56:16 +0000 Subject: [PATCH] Fix warnboxes svn: r6396 --- ChangeLog | 5 +++++ src/Editors/_EditPlace.py | 4 +--- src/Editors/_EditRepoRef.py | 6 ++++++ src/Editors/_EditRepository.py | 4 +--- src/PluginUtils/_PluginStatus.py | 23 +++++++++++++---------- 5 files changed, 26 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index db500d6aa..3b367bf74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-04-21 Don Allingham + * src/Editors/_EditRepository.py: fix warnbox call + * src/Editors/_EditPlace.py: fix warnbox call + * src/Editors/_EditRepoRef.py: Add backreference tab + 2006-04-21 Alex Roitman * src/PluginUtils/_PluginStatus.py: Many small fixes. * src/ManagedWindow.py (GrampsWindowManager.display_menu_list): diff --git a/src/Editors/_EditPlace.py b/src/Editors/_EditPlace.py index fd780119d..902e1d413 100644 --- a/src/Editors/_EditPlace.py +++ b/src/Editors/_EditPlace.py @@ -179,9 +179,7 @@ class EditPlace(EditPrimary): self.backref_list = self._add_tab( notebook, PlaceBackRefList(self.dbstate,self.uistate,self.track, - self.db.find_backlink_handles(self.obj.handle), - self.enable_warnbox - )) + self.db.find_backlink_handles(self.obj.handle))) def _cleanup_on_exit(self): self.backref_list.close() diff --git a/src/Editors/_EditRepoRef.py b/src/Editors/_EditRepoRef.py index 31a06bf1d..96b4f7911 100644 --- a/src/Editors/_EditRepoRef.py +++ b/src/Editors/_EditRepoRef.py @@ -134,6 +134,12 @@ class EditRepoRef(EditReference): WebEmbedList(self.dbstate,self.uistate,self.track, self.source.get_url_list())) + self.backref_tab = self._add_tab( + notebook, + SourceBackRefList(self.dbstate, self.uistate, self.track, + self.db.find_backlink_handles(self.obj.handle), + self.enable_warnbox)) + def build_menu_names(self,sourceref): if self.source: source_name = self.source.get_name() diff --git a/src/Editors/_EditRepository.py b/src/Editors/_EditRepository.py index 71cd2beed..5b8cff5c7 100644 --- a/src/Editors/_EditRepository.py +++ b/src/Editors/_EditRepository.py @@ -106,9 +106,7 @@ class EditRepository(EditPrimary): self.backref_tab = self._add_tab( notebook, SourceBackRefList(self.dbstate, self.uistate, self.track, - self.db.find_backlink_handles(self.obj.handle), - self.enable_warnbox - )) + self.db.find_backlink_handles(self.obj.handle))) notebook.show_all() self.glade.get_widget("vbox").pack_start(notebook,True,True) diff --git a/src/PluginUtils/_PluginStatus.py b/src/PluginUtils/_PluginStatus.py index 91172c18e..0c1749c4b 100644 --- a/src/PluginUtils/_PluginStatus.py +++ b/src/PluginUtils/_PluginStatus.py @@ -64,15 +64,15 @@ class PluginStatus(ManagedWindow.ManagedWindow): self.model = gtk.ListStore(str, str, str) self.list.set_model(self.model) - self.list.append_column(gtk.TreeViewColumn(_('Status'), - gtk.CellRendererText(), - markup=0)) - self.list.append_column(gtk.TreeViewColumn(_('File'), - gtk.CellRendererText(), - text=1)) - self.list.append_column(gtk.TreeViewColumn(_('Message'), - gtk.CellRendererText(), - text=2)) + self.list.append_column( + gtk.TreeViewColumn(_('Status'), gtk.CellRendererText(), + markup=0)) + self.list.append_column( + gtk.TreeViewColumn(_('File'), gtk.CellRendererText(), + text=1)) + self.list.append_column( + gtk.TreeViewColumn(_('Message'), gtk.CellRendererText(), + text=2)) scrolled_window.add(self.list) self.window.vbox.add(scrolled_window) @@ -92,8 +92,11 @@ class PluginStatus(ManagedWindow.ManagedWindow): for i in PluginMgr.success_list: self.model.append(row=[ - '%s' % _("OK"), + '%s' % _("OK"), i[0], '']) + self.window.run() + self.window.destroy() + def build_menu_names(self,obj): return (self.title,None)