--- ibus-anthy/engine/engine.py.orig 2012-12-31 00:46:13.000000000 +0900 +++ ibus-anthy/engine/engine.py 2013-01-16 17:53:40.922164419 +0900 @@ -233,7 +233,7 @@ class Engine(IBus.EngineSimple): { 'description' : _("Input mode"), 'symbol' : symbol } input_mode_prop = IBus.Property(key=u'InputMode', prop_type=IBus.PropType.MENU, - label=IBus.Text.new_from_string(label), + label=IBus.Text.new_from_string(symbol), symbol=IBus.Text.new_from_string(symbol), icon='', tooltip=IBus.Text.new_from_string(_("Switch input mode")), @@ -321,7 +321,7 @@ class Engine(IBus.EngineSimple): { 'description' : _("Typing method"), 'symbol' : symbol } typing_mode_prop = IBus.Property(key=u'TypingMode', prop_type=IBus.PropType.MENU, - label=IBus.Text.new_from_string(label), + label=IBus.Text.new_from_string(symbol), symbol=IBus.Text.new_from_string(symbol), icon='', tooltip=IBus.Text.new_from_string(_("Switch typing method")), @@ -388,7 +388,7 @@ class Engine(IBus.EngineSimple): { 'description' : _("Segment mode"), 'symbol' : symbol } segment_mode_prop = IBus.Property(key=u'SegmentMode', prop_type=IBus.PropType.MENU, - label=IBus.Text.new_from_string(label), + label=IBus.Text.new_from_string(symbol), symbol=IBus.Text.new_from_string(symbol), icon=None, tooltip=IBus.Text.new_from_string(_("Switch conversion mode")), @@ -464,7 +464,7 @@ class Engine(IBus.EngineSimple): { 'description' : _("Dictionary mode"), 'symbol' : short_label } dict_mode_prop = IBus.Property(key=u'DictMode', prop_type=IBus.PropType.MENU, - label=IBus.Text.new_from_string(label), + label=IBus.Text.new_from_string(short_label), symbol=IBus.Text.new_from_string(short_label), icon=None, tooltip=IBus.Text.new_from_string(_("Switch dictionary")), @@ -793,7 +793,7 @@ class Engine(IBus.EngineSimple): Engine.__input_mode = mode prop = self.__prop_dict[u'InputMode'] prop.set_symbol(IBus.Text.new_from_string(symbol)) - prop.set_label(IBus.Text.new_from_string(label)) + prop.set_label(IBus.Text.new_from_string(symbol)) self.update_property(prop) self.__reset() @@ -821,7 +821,7 @@ class Engine(IBus.EngineSimple): Engine.__typing_mode = mode prop = self.__prop_dict[u'TypingMode'] prop.set_symbol(IBus.Text.new_from_string(symbol)) - prop.set_label(IBus.Text.new_from_string(label)) + prop.set_label(IBus.Text.new_from_string(symbol)) self.update_property(prop) self.__reset() @@ -846,7 +846,7 @@ class Engine(IBus.EngineSimple): _prop.set_state(IBus.PropState.CHECKED) self.update_property(_prop) prop.set_symbol(IBus.Text.new_from_string(symbol)) - prop.set_label(IBus.Text.new_from_string(label)) + prop.set_label(IBus.Text.new_from_string(symbol)) self.update_property(prop) def __segment_mode_activate(self, prop_name, state): @@ -871,7 +871,7 @@ class Engine(IBus.EngineSimple): Engine.__segment_mode = mode prop = self.__prop_dict[u'SegmentMode'] prop.set_symbol(IBus.Text.new_from_string(symbol)) - prop.set_label(IBus.Text.new_from_string(label)) + prop.set_label(IBus.Text.new_from_string(symbol)) self.update_property(prop) self.__reset() @@ -936,7 +936,7 @@ class Engine(IBus.EngineSimple): label = _("%(description)s (%(symbol)s)") % \ { 'description' : _("Dictionary mode"), 'symbol' : symbol } prop.set_symbol(IBus.Text.new_from_string(symbol)) - prop.set_label(IBus.Text.new_from_string(label)) + prop.set_label(IBus.Text.new_from_string(symbol)) self.update_property(prop) def __argb(self, a, r, g, b):