Add glade.py with Glade class and use instead of gtk.Builder throughout project

svn: r12528
This commit is contained in:
Gerald Britton
2009-05-14 20:15:59 +00:00
parent feb15edc7e
commit 110557c3c7
131 changed files with 2002 additions and 3103 deletions

View File

@ -64,6 +64,7 @@ from PluginUtils import Tool
from gen.plug import PluginManager
from QuestionDialog import OkDialog, MissingMediaDialog
from BasicUtils import name_displayer as _nd
from glade import Glade
#-------------------------------------------------------------------------
#
@ -1628,14 +1629,9 @@ class Report(ManagedWindow.ManagedWindow):
ManagedWindow.ManagedWindow.__init__(self, uistate, [], self)
glade_file = os.path.join(
os.path.split(__file__)[0],
_GLADE_FILE)
topDialog = gtk.Builder()
topDialog.add_from_file(glade_file)
topDialog = Glade()
topDialog.get_object("close").connect('clicked',self.close)
window = topDialog.get_object ("summary")
window = topDialog.toplevel
textwindow = topDialog.get_object("textwindow")
textwindow.get_buffer().set_text(text)