Fix warnboxes

svn: r6396
This commit is contained in:
Don Allingham 2006-04-21 19:56:16 +00:00
parent 409b235eab
commit 2fda127d99
5 changed files with 26 additions and 16 deletions

View File

@ -1,3 +1,8 @@
2006-04-21 Don Allingham <don@gramps-project.org>
* 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 <shura@gramps-project.org>
* src/PluginUtils/_PluginStatus.py: Many small fixes.
* src/ManagedWindow.py (GrampsWindowManager.display_menu_list):

View File

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

View File

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

View File

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

View File

@ -64,14 +64,14 @@ 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(),
self.list.append_column(
gtk.TreeViewColumn(_('Status'), gtk.CellRendererText(),
markup=0))
self.list.append_column(gtk.TreeViewColumn(_('File'),
gtk.CellRendererText(),
self.list.append_column(
gtk.TreeViewColumn(_('File'), gtk.CellRendererText(),
text=1))
self.list.append_column(gtk.TreeViewColumn(_('Message'),
gtk.CellRendererText(),
self.list.append_column(
gtk.TreeViewColumn(_('Message'), gtk.CellRendererText(),
text=2))
scrolled_window.add(self.list)
@ -92,8 +92,11 @@ class PluginStatus(ManagedWindow.ManagedWindow):
for i in PluginMgr.success_list:
self.model.append(row=[
'<span weight="bold" color="green">%s</span>' % _("OK"),
'<span weight="bold" color="#267726">%s</span>' % _("OK"),
i[0], ''])
self.window.run()
self.window.destroy()
def build_menu_names(self,obj):
return (self.title,None)