summaryrefslogtreecommitdiffstats
path: root/setup
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2009-09-24 11:46:53 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2009-09-24 11:46:53 +0800
commit0f6dbec1e15bac3a115c8a0736ae894c6584b329 (patch)
treead7251085cdddb641a63a1fe0234ce32040653a6 /setup
parentfc6e52a1619b3cd92c0de9960ab11370ca3d683b (diff)
downloadibus-libpinyin-0f6dbec1e15bac3a115c8a0736ae894c6584b329.tar.gz
ibus-libpinyin-0f6dbec1e15bac3a115c8a0736ae894c6584b329.tar.xz
ibus-libpinyin-0f6dbec1e15bac3a115c8a0736ae894c6584b329.zip
Add configure for Simplified/Traditional Chinese
Diffstat (limited to 'setup')
-rw-r--r--setup/ibus-pinyin-preferences.glade46
-rw-r--r--setup/main.py4
2 files changed, 49 insertions, 1 deletions
diff --git a/setup/ibus-pinyin-preferences.glade b/setup/ibus-pinyin-preferences.glade
index 95eefd9..9662941 100644
--- a/setup/ibus-pinyin-preferences.glade
+++ b/setup/ibus-pinyin-preferences.glade
@@ -152,7 +152,7 @@
<child>
<object class="GtkTable" id="table4">
<property name="visible">True</property>
- <property name="n_rows">3</property>
+ <property name="n_rows">4</property>
<property name="n_columns">3</property>
<child>
<object class="GtkLabel" id="label9">
@@ -275,6 +275,50 @@
<property name="bottom_attach">3</property>
</packing>
</child>
+ <child>
+ <object class="GtkLabel" id="label18">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Chinese:</property>
+ </object>
+ <packing>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="InitSimplified">
+ <property name="label" translatable="yes">Simplified</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">InitTraditional</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="InitTraditional">
+ <property name="label" translatable="yes">Traditional</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ </packing>
+ </child>
</object>
</child>
</object>
diff --git a/setup/main.py b/setup/main.py
index 6396117..1a71c4b 100644
--- a/setup/main.py
+++ b/setup/main.py
@@ -77,16 +77,20 @@ class PreferencesDialog:
self.__init_half = self.__builder.get_object("InitHalf")
self.__init_full_punct = self.__builder.get_object("InitFullPunct")
self.__init_half_punct = self.__builder.get_object("InitHalfPunct")
+ self.__init_simp = self.__builder.get_object("InitSimplfiedChinese")
+ self.__init_trad = self.__builder.get_object("IniTraditionalChinese")
# read values
self.__init_chinese.set_active(self.__get_value("InitChinese", True))
self.__init_full.set_active(self.__get_value("InitFull", False))
self.__init_full_punct.set_active(self.__get_value("InitFullPunct", True))
+ self.__init_simp.set_active(self.__get_value("InitSimplfiedChinese", True))
# connect signals
self.__init_chinese.connect("toggled", self.__toggled_cb, "InitChinese")
self.__init_full.connect("toggled", self.__toggled_cb, "InitFull")
self.__init_full_punct.connect("toggled", self.__toggled_cb, "InitFullPunct")
+ self.__init_simp.connect("toggled", self.__toggled_cb, "InitSimplfiedChinese")
def __init_others(self):
#others