summaryrefslogtreecommitdiff
path: root/portato/gui/windows
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-04-24 19:11:04 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-04-24 19:11:04 +0200
commit785e1f2cb2fcd32426931d47fbca72c23ccc06ea (patch)
treefef77b8af7ceda731f35244914db78a58dcfea00 /portato/gui/windows
parent4c1d61cb71a396f09969ed264c91ebfff29145c1 (diff)
downloadportato-785e1f2cb2fcd32426931d47fbca72c23ccc06ea.tar.gz
portato-785e1f2cb2fcd32426931d47fbca72c23ccc06ea.tar.bz2
portato-785e1f2cb2fcd32426931d47fbca72c23ccc06ea.zip
Make the new widget structure work. At least for the Plugin Menu
Diffstat (limited to '')
-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."""