ibus-anthy/ibus-anthy-xx-disable-prop-symbol.patch

84 lines
4.6 KiB
Diff
Raw Normal View History

2013-01-16 09:54:06 +00:00
--- 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):
2012-10-06 13:14:13 +00:00
{ '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")),
2013-01-16 09:54:06 +00:00
@@ -321,7 +321,7 @@ class Engine(IBus.EngineSimple):
2012-10-06 13:14:13 +00:00
{ '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")),
2013-01-16 09:54:06 +00:00
@@ -388,7 +388,7 @@ class Engine(IBus.EngineSimple):
2012-10-06 13:14:13 +00:00
{ '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")),
2013-01-16 09:54:06 +00:00
@@ -464,7 +464,7 @@ class Engine(IBus.EngineSimple):
2012-10-06 13:14:13 +00:00
{ '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")),
2013-01-16 09:54:06 +00:00
@@ -793,7 +793,7 @@ class Engine(IBus.EngineSimple):
Engine.__input_mode = mode
2012-10-06 13:14:13 +00:00
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()
2013-01-16 09:54:06 +00:00
@@ -821,7 +821,7 @@ class Engine(IBus.EngineSimple):
2012-10-06 13:14:13 +00:00
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()
2013-01-16 09:54:06 +00:00
@@ -846,7 +846,7 @@ class Engine(IBus.EngineSimple):
2012-10-06 13:14:13 +00:00
_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):
2013-01-16 09:54:06 +00:00
@@ -871,7 +871,7 @@ class Engine(IBus.EngineSimple):
Engine.__segment_mode = mode
2012-10-06 13:14:13 +00:00
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()
2013-01-16 09:54:06 +00:00
@@ -936,7 +936,7 @@ class Engine(IBus.EngineSimple):
2012-10-06 13:14:13 +00:00
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):