summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/windows.py
diff options
context:
space:
mode:
authornecoro <>2007-03-31 19:29:26 +0000
committernecoro <>2007-03-31 19:29:26 +0000
commit2d2f6823f5360a5287b4b19d035cad4a5611fa3a (patch)
treec108aee3dd9a34c1c7dbc68ed87ff4cc65078593 /portato/gui/gtk/windows.py
parent5138b1e23d34e0a72e0c2f4ae52256e14d825320 (diff)
downloadportato-2d2f6823f5360a5287b4b19d035cad4a5611fa3a.tar.gz
portato-2d2f6823f5360a5287b4b19d035cad4a5611fa3a.tar.bz2
portato-2d2f6823f5360a5287b4b19d035cad4a5611fa3a.zip
Allowed Plugins to have a menu
Diffstat (limited to '')
-rw-r--r--portato/gui/gtk/windows.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py
index a27d156..2de772f 100644
--- a/portato/gui/gtk/windows.py
+++ b/portato/gui/gtk/windows.py
@@ -530,7 +530,8 @@ class PackageTable:
try:
self.queue.append(self.actual_package().get_cpv(), unmerge = True)
except PackageNotFoundException, e:
- masked_dialog(e[0])
+ debug("Package could not be found",e[0], error = 1)
+ #masked_dialog(e[0])
def cb_combo_changed (self, combo):
"""Callback for the changed ComboBox.
@@ -720,7 +721,17 @@ class MainWindow (Window):
self.cfg.modify_external_configs()
+ # set plugins and plugin-menu
plugin.load_plugins()
+ menus = plugin.get_plugins().get_plugin_menus()
+ if menus:
+ self.tree.get_widget("pluginMenuItem").set_no_show_all(False)
+ pluginMenu = self.tree.get_widget("pluginMenu")
+
+ for m in menus:
+ item = gtk.MenuItem(m.label)
+ item.connect("activate", m.call)
+ pluginMenu.append(item)
# set vpaned position
vpaned = self.tree.get_widget("vpaned")