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:
authorMarco Pesenti Gritti <mpg@redhat.com>2008-04-18 23:10:48 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2008-04-18 23:10:48 (GMT)
commit283b20114576b1e29d856911d188ce3c73865012 (patch)
tree3f3fbe63475506ae340590f2564dd9d4085b6dc7 /sugar/graphics/menuitem.py
parent8783d1113d945b25d5deedae574be52dcf4d34e5 (diff)
pylint most of sugar.graphics, only palette left
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)