summaryrefslogtreecommitdiff
path: root/portato/gui/windows/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/windows/main.py')
-rw-r--r--portato/gui/windows/main.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index cb463c8..0259fc7 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -63,14 +63,19 @@ class PluginMenuSlot (plugin.WidgetSlot):
aname = "plugin%d" % self.ctr
a = gtk.Action(aname, label, None, None)
self.ctr += 1
+
+ return a
- def add (self, action):
+ def add (self, widget):
+ action = widget.widget
self.ag.add_action(action)
# add to UI
mid = self.uim.new_merge_id()
self.uim.add_ui(mid, "ui/menubar/pluginMenu", action.get_name(), action.get_name(), gtk.UI_MANAGER_MENUITEM, False)
+ self.uim.ensure_update()
+
class PackageTable:
"""A window with data about a specfic package."""