Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-01-07 22:38:33 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-01-07 22:38:33 (GMT)
commit1ee6b7faf09fbaadb5b662967d12a7980365976a (patch)
tree69c47a9a1239cfdcb4b80980c67ed23f31f42fd9 /sugar/graphics
parenta7d625166480a67e95852a4c83b75423afa77c0e (diff)
Some clipboard fixes.
Diffstat (limited to 'sugar/graphics')
-rw-r--r--sugar/graphics/menu.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sugar/graphics/menu.py b/sugar/graphics/menu.py
index 153c5bc..f453b16 100644
--- a/sugar/graphics/menu.py
+++ b/sugar/graphics/menu.py
@@ -76,12 +76,14 @@ class Menu(gtk.Window):
orientation=hippo.ORIENTATION_HORIZONTAL)
self._root.append(self._action_box)
- def add_item(self, label, action_id=None):
+ def add_item(self, label, action_id=None, wrap=False):
if not self._item_box:
self._create_item_box()
text = hippo.CanvasText(text=label)
style.apply_stylesheet(text, 'menu.Item')
+ if wrap:
+ text.set_property("size-mode", "wrap-word")
# FIXME need a way to make hippo items activable in python
if action_id: