BookReport.py: fix bug in file path build routine

svn: r12442
This commit is contained in:
Gerald Britton 2009-04-13 19:10:06 +00:00
parent bb866f133a
commit a02dd4e199

View File

@ -573,7 +573,7 @@ class BookListDisplay:
base = os.path.dirname(__file__)
glade_file = os.path.join(base,"book.glade")
self.xml = gtk.Builder()
self.xml.add_from_source('/tmp/book.glade')
self.xml.add_from_source(glade_file)
self.xml.get_object('top').hide()
#self.xml = glade.XML(glade_file, "booklist", "gramps")
self.top = self.xml.get_object('booklist')
@ -688,7 +688,7 @@ class BookReportSelector(ManagedWindow.ManagedWindow):
base = os.path.dirname(__file__)
glade_file = os.path.join(base,"book.glade")
self.xml = gtk.Builder()
self.xml.add_from_file('/tmp/book.glade')
self.xml.add_from_file(glade_file')
self.xml.get_object('booklist').hide()
#self.xml = glade.XML(glade_file, "top", "gramps")
window = self.xml.get_object("top")