summaryrefslogtreecommitdiff
path: root/portato/gui/windows
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-18 22:02:31 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-18 22:02:31 +0100
commit9fc80ac9b4fdb7589e66923d79bbd45e80758630 (patch)
treea13485564f3e29619abf42ef49d6e5a35e1efa11 /portato/gui/windows
parent2c6eed28c67d737e8da9877ee95e71825c6ff377 (diff)
downloadportato-9fc80ac9b4fdb7589e66923d79bbd45e80758630.tar.gz
portato-9fc80ac9b4fdb7589e66923d79bbd45e80758630.tar.bz2
portato-9fc80ac9b4fdb7589e66923d79bbd45e80758630.zip
Make it start - though there are still itches - esp. with the menu
Diffstat (limited to '')
-rw-r--r--portato/gui/windows/main.py25
1 files changed, 12 insertions, 13 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 443fa76..5494b25 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -62,7 +62,7 @@ class PackageTable:
self.main = main
self.tree = main.tree
self.window = main.window
- self.tree.signal_autoconnect(self)
+ self.main._builder.connect_signals(self)
# all the package data is in this one VB
self.vb = self.tree.get_widget("packageVB")
@@ -480,14 +480,13 @@ class MainWindow (Window):
plugin.load_plugins()
menus = [p.menus for p in plugin.get_plugin_queue().get_plugins()]
- if menus:
- self.tree.get_widget("pluginMenuItem").set_no_show_all(False)
- pluginMenu = self.tree.get_widget("pluginMenu")
+ #if menus:
+ # pluginMenu = self.tree.get_widget("pluginMenu")
- for m in itt.chain(*menus):
- item = gtk.MenuItem(m.label)
- item.connect("activate", m.call)
- pluginMenu.append(item)
+ # for m in itt.chain(*menus):
+ # item = gtk.MenuItem(m.label)
+ # item.connect("activate", m.call)
+ # pluginMenu.append(item)
splash(_("Building frontend"))
# set paned position
@@ -554,15 +553,15 @@ class MainWindow (Window):
self.packageTable = PackageTable(self)
# popups
- self.consolePopup = Popup("consolePopup", self, self.__file__)
- self.trayPopup = Popup("systrayPopup", self)
+ # self.consolePopup = Popup("consolePopup", self, self.__file__)
+ # self.trayPopup = Popup("systrayPopup", self)
# pause menu items
self.emergePaused = False
self.pauseItems = {}
- self.pauseItems["tray"] = self.trayPopup.tree.get_widget("pauseItemTray")
- self.pauseItems["popup"] = self.consolePopup.tree.get_widget("pauseItemPopup")
- self.pauseItems["menu"] = self.tree.get_widget("pauseItemMenu")
+ # self.pauseItems["tray"] = self.trayPopup.tree.get_widget("pauseItemTray")
+ # self.pauseItems["popup"] = self.consolePopup.tree.get_widget("pauseItemPopup")
+ # self.pauseItems["menu"] = self.tree.get_widget("pauseItemMenu")
for k,v in self.pauseItems.iteritems():
self.pauseItems[k] = (v, v.connect_after("activate", self.cb_pause_emerge(k)))