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> 2006-04-21 Alex Roitman <shura@gramps-project.org>
* src/PluginUtils/_PluginStatus.py: Many small fixes. * src/PluginUtils/_PluginStatus.py: Many small fixes.
* src/ManagedWindow.py (GrampsWindowManager.display_menu_list): * src/ManagedWindow.py (GrampsWindowManager.display_menu_list):

View File

@ -179,9 +179,7 @@ class EditPlace(EditPrimary):
self.backref_list = self._add_tab( self.backref_list = self._add_tab(
notebook, notebook,
PlaceBackRefList(self.dbstate,self.uistate,self.track, PlaceBackRefList(self.dbstate,self.uistate,self.track,
self.db.find_backlink_handles(self.obj.handle), self.db.find_backlink_handles(self.obj.handle)))
self.enable_warnbox
))
def _cleanup_on_exit(self): def _cleanup_on_exit(self):
self.backref_list.close() self.backref_list.close()

View File

@ -134,6 +134,12 @@ class EditRepoRef(EditReference):
WebEmbedList(self.dbstate,self.uistate,self.track, WebEmbedList(self.dbstate,self.uistate,self.track,
self.source.get_url_list())) 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): def build_menu_names(self,sourceref):
if self.source: if self.source:
source_name = self.source.get_name() source_name = self.source.get_name()

View File

@ -106,9 +106,7 @@ class EditRepository(EditPrimary):
self.backref_tab = self._add_tab( self.backref_tab = self._add_tab(
notebook, notebook,
SourceBackRefList(self.dbstate, self.uistate, self.track, SourceBackRefList(self.dbstate, self.uistate, self.track,
self.db.find_backlink_handles(self.obj.handle), self.db.find_backlink_handles(self.obj.handle)))
self.enable_warnbox
))
notebook.show_all() notebook.show_all()
self.glade.get_widget("vbox").pack_start(notebook,True,True) self.glade.get_widget("vbox").pack_start(notebook,True,True)

View File

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