Skip to content

Instantly share code, notes, and snippets.

@wh5a
Created January 22, 2010 05:51
Show Gist options
  • Save wh5a/283543 to your computer and use it in GitHub Desktop.
Save wh5a/283543 to your computer and use it in GitHub Desktop.
From f374a87d833e734520e46b19d0d5c53e10c10c96 Mon Sep 17 00:00:00 2001
From: Wei Hu <weihu@cs.virginia.edu>
Date: Sat, 26 Dec 2009 03:59:33 -0500
Subject: [PATCH] Use [] to flip pages.
---
po/ibus-pinyin.pot | 4 ++--
po/zh_CN.po | 8 ++++----
setup/ibus-pinyin-preferences.ui | 4 ++--
src/PinyinEngine.cc | 4 ++--
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/po/ibus-pinyin.pot b/po/ibus-pinyin.pot
index 0ef7769..3188eea 100644
--- a/po/ibus-pinyin.pot
+++ b/po/ibus-pinyin.pot
@@ -173,7 +173,7 @@ msgid "Press [,] [.] key to flip page"
msgstr ""
#: ../setup/ibus-pinyin-preferences.ui.h:35
-msgid "Press [-] [=] key to flip page"
+msgid "Press [[] []] key to flip page"
msgstr ""
#: ../setup/ibus-pinyin-preferences.ui.h:36
@@ -223,7 +223,7 @@ msgid "Use [,] [.] key to page up/down the lookup table."
msgstr ""
#: ../setup/ibus-pinyin-preferences.ui.h:47
-msgid "Use [-] [=] key to page up/down the lookup table."
+msgid "Use [[] []] key to page up/down the lookup table."
msgstr ""
#: ../setup/ibus-pinyin-preferences.ui.h:48
diff --git a/po/zh_CN.po b/po/zh_CN.po
index b1f19a6..fe7bdf6 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -172,8 +172,8 @@ msgid "Press [,] [.] key to flip page"
msgstr "按[,][.]键翻页"
#: ../setup/ibus-pinyin-preferences.ui.h:35
-msgid "Press [-] [=] key to flip page"
-msgstr "按[-][=]键翻页"
+msgid "Press [[] []] key to flip page"
+msgstr "按[[][]]键翻页"
#: ../setup/ibus-pinyin-preferences.ui.h:36
msgid "Press [Shift] key to select candidate"
@@ -222,8 +222,8 @@ msgid "Use [,] [.] key to page up/down the lookup table."
msgstr "按[,][.]键翻页。"
#: ../setup/ibus-pinyin-preferences.ui.h:47
-msgid "Use [-] [=] key to page up/down the lookup table."
-msgstr "使用[-][=]键翻页。"
+msgid "Use [[] []] key to page up/down the lookup table."
+msgstr "使用[[][]]键翻页。"
#: ../setup/ibus-pinyin-preferences.ui.h:48
msgid "Use double pinyin."
diff --git a/setup/ibus-pinyin-preferences.ui b/setup/ibus-pinyin-preferences.ui
index 2e90f52..fe11567 100644
--- a/setup/ibus-pinyin-preferences.ui
+++ b/setup/ibus-pinyin-preferences.ui
@@ -381,11 +381,11 @@
</child>
<child>
<object class="GtkCheckButton" id="MinusEqualPage">
- <property name="label" translatable="yes">Press [-] [=] key to flip page</property>
+ <property name="label" translatable="yes">Press [[] []] key to flip page</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="tooltip_text" translatable="yes">Use [-] [=] key to page up/down the lookup table.</property>
+ <property name="tooltip_text" translatable="yes">Use [[] []] key to page up/down the lookup table.</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</object>
diff --git a/src/PinyinEngine.cc b/src/PinyinEngine.cc
index 9efd3c2..4145e83 100644
--- a/src/PinyinEngine.cc
+++ b/src/PinyinEngine.cc
@@ -286,7 +286,7 @@ PinyinEngine::processPunct (guint keyval, guint keycode, guint modifiers)
return TRUE;
}
break;
- case IBUS_minus:
+ case IBUS_bracketleft:
if (Config::minusEqualPage ()) {
pageUp ();
return TRUE;
@@ -298,7 +298,7 @@ PinyinEngine::processPunct (guint keyval, guint keycode, guint modifiers)
return TRUE;
}
break;
- case IBUS_equal:
+ case IBUS_bracketright:
if (Config::minusEqualPage ()) {
pageDown ();
return TRUE;
--
1.6.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment