Bringed back self.notebook in DelugeGTK(was removed in [931]) as it is used by

plugins.
NetworkGraph plugin is working again.
This commit is contained in:
Alex Dedul 2007-07-13 17:05:44 +00:00
parent 105703d630
commit 8dad5d9fd8
1 changed files with 5 additions and 2 deletions

View File

@ -86,8 +86,11 @@ class DelugeGTK:
self.window.connect("configure-event", self.window_configure_event)
self.window.set_title(common.PROGRAM_NAME)
self.window.set_icon_from_file(common.get_pixmap("deluge32.png"))
self.wtree.get_widget("torrent_info").\
connect("switch-page", self.notebook_switch_page)
# self.notebook is used by plugins
self.notebook = self.wtree.get_widget("torrent_info")
self.notebook.connect("switch-page", self.notebook_switch_page)
self.statusbar = self.wtree.get_widget("statusbar")
## Construct the Interface