diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-05 02:41:02 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-05 02:41:02 +0200 |
commit | 80b0b50b9508b13e98842d196a806599b3044a8f (patch) | |
tree | 08af1aa8ebb493df7266f6d57da2595c2db5217a /portato/gui/windows/main.py | |
parent | cd5751b7a49f12ae9baf33f7c692dc9da85d355e (diff) | |
download | portato-80b0b50b9508b13e98842d196a806599b3044a8f.tar.gz portato-80b0b50b9508b13e98842d196a806599b3044a8f.tar.bz2 portato-80b0b50b9508b13e98842d196a806599b3044a8f.zip |
Add 'WidgetPlugin' class
Diffstat (limited to '')
-rw-r--r-- | portato/gui/windows/main.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index c7f419a..88f7692 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -470,6 +470,15 @@ class MainWindow (Window): # package db splash(_("Creating Database")) self.db = Database(self.cfg.get("type", section = "DATABASE")) + + # set plugins and plugin-menu + splash(_("Loading Plugins")) + + optionsHB = self.tree.get_widget("optionsHB") + slots.WidgetSlot(gtk.CheckButton, "Emerge Options", add = lambda w: optionsHB.pack_end(w.widget)) + + slots.PluginMenuSlot(self.tree) + plugin.load_plugins() splash(_("Building frontend")) # set paned position @@ -555,14 +564,6 @@ class MainWindow (Window): self.queueTree = GtkTree(self.queueList.get_model()) self.queue = EmergeQueue(console = self.console, tree = self.queueTree, db = self.db, title_update = self.title_update, threadClass = GtkThread) - # set plugins and plugin-menu - splash(_("Loading Plugins")) - - optionsHB = self.tree.get_widget("optionsHB") - slots.WidgetSlot(gtk.CheckButton, "Emerge Options", add = lambda w: optionsHB.pack_end(w.widget)) - - slots.PluginMenuSlot(self.tree) - plugin.load_plugins() # session splash(_("Restoring Session")) @@ -574,6 +575,9 @@ class MainWindow (Window): except SessionException, e: warning(str(e)) self.load_session(defaults_only = True) # last ressort + + splash(_("Loading Plugin Widgets")) + plugin.load_plugin_widgets() splash(_("Finishing startup")) |