Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/menuitem.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar/graphics/menuitem.py')
-rw-r--r--sugar/graphics/menuitem.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sugar/graphics/menuitem.py b/sugar/graphics/menuitem.py
index 908cc1f..3d6764b 100644
--- a/sugar/graphics/menuitem.py
+++ b/sugar/graphics/menuitem.py
@@ -29,5 +29,6 @@ class MenuItem(gtk.ImageMenuItem):
icon.show()
if text_maxlen > 0:
- self.child.set_ellipsize(pango.ELLIPSIZE_MIDDLE)
- self.child.set_max_width_chars(text_maxlen)
+ child = self.get_child()
+ child.set_ellipsize(pango.ELLIPSIZE_MIDDLE)
+ child.set_max_width_chars(text_maxlen)