Fix warnboxes
svn: r6396
This commit is contained in:
parent
409b235eab
commit
2fda127d99
@ -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):
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
@ -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=[
|
||||
'<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)
|
||||
|
Loading…
Reference in New Issue
Block a user