From d53909ddd273744dc990ee97d32bd1a37bfe9822 Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Tue, 24 Jun 2008 21:10:36 +0800 Subject: [PATCH] Set default value of InputMode. --- engine/anthy/engine.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/engine/anthy/engine.py b/engine/anthy/engine.py index 320381e..7e73809 100644 --- a/engine/anthy/engine.py +++ b/engine/anthy/engine.py @@ -56,19 +56,20 @@ class Engine (interface.IEngine): mode_props = ibus.PropList () mode_props.append (ibus.Property (name = "InputModeHiragana", type = ibus.PROP_TYPE_RADIO, - label = u"Hiragana")) + label = "Hiragana", + state = ibus.PROP_STATE_CHECKED)) mode_props.append (ibus.Property (name = "InputModeKatagana", type = ibus.PROP_TYPE_RADIO, - label = u"Katagana")) + label = "Katagana")) mode_props.append (ibus.Property (name = "InputModeHalfWidthHiragana", type = ibus.PROP_TYPE_RADIO, - label = u"Half width hiragana")) + label = "Half width hiragana")) mode_props.append (ibus.Property (name = "InputModeHalfWidthKatagana", type = ibus.PROP_TYPE_RADIO, - label = u"Half width katagana")) + label = "Half width katagana")) mode_props.append (ibus.Property (name = "InputModeLatin", type = ibus.PROP_TYPE_RADIO, - label = u"Direct input")) + label = "Direct input")) mode_prop.set_sub_props (mode_props) props.append (mode_prop) -- 2.7.4