Update patch
This commit is contained in:
parent
bf82c56046
commit
a0a7789cfa
@ -1,14 +1,5 @@
|
|||||||
From 9f197c3f4c675129e308de24e9be9e6f48756ba8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Peng Wu <alexepico@gmail.com>
|
|
||||||
Date: Mon, 14 Dec 2015 15:43:03 +0800
|
|
||||||
Subject: [PATCH] fixes m_bopomofo_keyboard_mapping option
|
|
||||||
|
|
||||||
---
|
|
||||||
src/PYPConfig.cc | 10 ++++++----
|
|
||||||
1 file changed, 6 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc
|
diff --git a/src/PYPConfig.cc b/src/PYPConfig.cc
|
||||||
index 8ee11c6..bbcee79 100644
|
index 8ee11c6..1b24666 100644
|
||||||
--- a/src/PYPConfig.cc
|
--- a/src/PYPConfig.cc
|
||||||
+++ b/src/PYPConfig.cc
|
+++ b/src/PYPConfig.cc
|
||||||
@@ -109,6 +109,8 @@ LibPinyinConfig::initDefaultValues (void)
|
@@ -109,6 +109,8 @@ LibPinyinConfig::initDefaultValues (void)
|
||||||
@ -20,42 +11,3 @@ index 8ee11c6..bbcee79 100644
|
|||||||
m_dictionaries = "";
|
m_dictionaries = "";
|
||||||
|
|
||||||
m_main_switch = "<Shift>";
|
m_main_switch = "<Shift>";
|
||||||
@@ -337,7 +339,7 @@ PinyinConfig::readDefaultValues (void)
|
|
||||||
/* double pinyin */
|
|
||||||
m_double_pinyin = read (CONFIG_DOUBLE_PINYIN, false);
|
|
||||||
|
|
||||||
- const gint map = read (CONFIG_DOUBLE_PINYIN_SCHEMA, 0);
|
|
||||||
+ const gint map = read (CONFIG_DOUBLE_PINYIN_SCHEMA, DOUBLE_PINYIN_DEFAULT);
|
|
||||||
m_double_pinyin_schema = DOUBLE_PINYIN_DEFAULT;
|
|
||||||
|
|
||||||
for (guint i = 0; i < G_N_ELEMENTS (double_pinyin_schemes); i++) {
|
|
||||||
@@ -395,7 +397,7 @@ PinyinConfig::valueChanged (const std::string §ion,
|
|
||||||
if (CONFIG_DOUBLE_PINYIN == name)
|
|
||||||
m_double_pinyin = normalizeGVariant (value, false);
|
|
||||||
else if (CONFIG_DOUBLE_PINYIN_SCHEMA == name) {
|
|
||||||
- const gint map = normalizeGVariant (value, 0);
|
|
||||||
+ const gint map = normalizeGVariant (value, DOUBLE_PINYIN_DEFAULT);
|
|
||||||
m_double_pinyin_schema = DOUBLE_PINYIN_DEFAULT;
|
|
||||||
|
|
||||||
for (guint i = 0; i < G_N_ELEMENTS (double_pinyin_schemes); i++) {
|
|
||||||
@@ -499,7 +501,7 @@ BopomofoConfig::readDefaultValues (void)
|
|
||||||
|
|
||||||
m_special_phrases = read (CONFIG_SPECIAL_PHRASES, false);
|
|
||||||
|
|
||||||
- const gint map = read (CONFIG_BOPOMOFO_KEYBOARD_MAPPING, 0);
|
|
||||||
+ const gint map = read (CONFIG_BOPOMOFO_KEYBOARD_MAPPING, ZHUYIN_DEFAULT);
|
|
||||||
m_bopomofo_keyboard_mapping = ZHUYIN_DEFAULT;
|
|
||||||
|
|
||||||
for (guint i = 0; i < G_N_ELEMENTS (chewing_schemes); i++) {
|
|
||||||
@@ -541,7 +543,7 @@ BopomofoConfig::valueChanged (const std::string §ion,
|
|
||||||
else if (CONFIG_SPECIAL_PHRASES == name)
|
|
||||||
m_special_phrases = normalizeGVariant (value, false);
|
|
||||||
else if (CONFIG_BOPOMOFO_KEYBOARD_MAPPING == name) {
|
|
||||||
- const gint map = normalizeGVariant (value, 0);
|
|
||||||
+ const gint map = normalizeGVariant (value, ZHUYIN_DEFAULT);
|
|
||||||
m_bopomofo_keyboard_mapping = ZHUYIN_DEFAULT;
|
|
||||||
|
|
||||||
for (guint i = 0; i < G_N_ELEMENTS (chewing_schemes); i++) {
|
|
||||||
--
|
|
||||||
2.5.0
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: ibus-libpinyin
|
Name: ibus-libpinyin
|
||||||
Version: 1.7.3
|
Version: 1.7.3
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Intelligent Pinyin engine based on libpinyin for IBus
|
Summary: Intelligent Pinyin engine based on libpinyin for IBus
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -89,6 +89,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|||||||
%{_datadir}/ibus/component/*
|
%{_datadir}/ibus/component/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 14 2015 Peng Wu <pwu@redhat.com> - 1.7.3-3
|
||||||
|
- Update patch
|
||||||
|
|
||||||
* Mon Dec 14 2015 Peng Wu <pwu@redhat.com> - 1.7.3-2
|
* Mon Dec 14 2015 Peng Wu <pwu@redhat.com> - 1.7.3-2
|
||||||
- Fixes crash when use "Bopomofo" engine for first time
|
- Fixes crash when use "Bopomofo" engine for first time
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user