summaryrefslogtreecommitdiffstats
path: root/ui/gtk/menu.py
diff options
context:
space:
mode:
authorPeng Huang <phuang@phuang.nay.redhat.com>2009-02-12 11:26:04 +0800
committerPeng Huang <phuang@phuang.nay.redhat.com>2009-02-12 11:26:04 +0800
commitdcd4ceb33c2865ef3636565c68d97ee05ea6b1e3 (patch)
tree975be031f2124728c42192961d79c2171dbbdeb8 /ui/gtk/menu.py
parentff57aab1e19c7f89ebb6b924165f5c6ced2a2201 (diff)
downloadibus-dcd4ceb33c2865ef3636565c68d97ee05ea6b1e3.tar.gz
ibus-dcd4ceb33c2865ef3636565c68d97ee05ea6b1e3.tar.xz
ibus-dcd4ceb33c2865ef3636565c68d97ee05ea6b1e3.zip
Use label.text instead of lable to fix problem.
Diffstat (limited to 'ui/gtk/menu.py')
-rw-r--r--ui/gtk/menu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/menu.py b/ui/gtk/menu.py
index 9a3b30a..6f6c7d1 100644
--- a/ui/gtk/menu.py
+++ b/ui/gtk/menu.py
@@ -92,7 +92,7 @@ class ImageMenuItem (gtk.ImageMenuItem, PropItem):
}
def __init__ (self, prop):
- gtk.ImageMenuItem.__init__ (self, label = prop.label)
+ gtk.ImageMenuItem.__init__ (self, label = prop.label.text)
PropItem.__init__ (self, prop)
if self._prop.icon:
@@ -128,7 +128,7 @@ class CheckMenuItem (gtk.CheckMenuItem, PropItem):
}
def __init__ (self, prop):
- gtk.CheckMenuItem.__init__ (self, label = prop.label)
+ gtk.CheckMenuItem.__init__ (self, label = prop.label.text)
PropItem.__init__ (self, prop)
self.set_active (self._prop._state == ibus.PROP_STATE_CHECKED)