Updated ibus-435880-surrounding-text.patch for python.

Updated ibus-541492-xkb.patch to support xkb variant and option.
This commit is contained in:
Takao Fujiwara 2010-09-14 20:20:08 +09:00
parent 51d759391e
commit 7232d5e1b2
3 changed files with 821 additions and 220 deletions

View File

@ -1,6 +1,6 @@
From 34e8a6e359ac7c44ec6e66776feb8b47d12ec2c2 Mon Sep 17 00:00:00 2001 From 808fee2b1148fda896055328a680666ed29d9d93 Mon Sep 17 00:00:00 2001
From: Daiki Ueno <ueno@unixuser.org> From: Daiki Ueno <ueno@unixuser.org>
Date: Tue, 14 Sep 2010 10:09:56 +0900 Date: Tue, 14 Sep 2010 19:51:24 +0900
Subject: [PATCH] Support surrounding-text retrieval. Subject: [PATCH] Support surrounding-text retrieval.
This change adds a new API function ibus_engine_get_surrounding_text(). This change adds a new API function ibus_engine_get_surrounding_text().
@ -22,17 +22,20 @@ Also,
- destroy - destroy
resets the current surrounding-text. resets the current surrounding-text.
--- ---
bus/engineproxy.c | 14 ++++++ bus/engineproxy.c | 14 ++++++
bus/engineproxy.h | 4 ++ bus/engineproxy.h | 4 ++
bus/inputcontext.c | 67 +++++++++++++++++++++++++++++++ bus/inputcontext.c | 67 ++++++++++++++++++++++++++++
bus/inputcontext.h | 4 ++ bus/inputcontext.h | 4 ++
client/gtk2/ibusimcontext.c | 84 +++++++++++++++++++++++++++++++++++--- client/gtk2/ibusimcontext.c | 84 ++++++++++++++++++++++++++++++++---
src/ibusengine.c | 93 +++++++++++++++++++++++++++++++++++++++++++ ibus/engine.py | 6 +++
src/ibusengine.h | 21 +++++++++- ibus/interface/iengine.py | 3 +
src/ibusinputcontext.c | 14 ++++++ ibus/interface/iinputcontext.py | 3 +
src/ibusinputcontext.h | 11 +++++ src/ibusengine.c | 93 +++++++++++++++++++++++++++++++++++++++
src/ibusmarshalers.list | 1 + src/ibusengine.h | 21 ++++++++-
10 files changed, 305 insertions(+), 8 deletions(-) src/ibusinputcontext.c | 14 ++++++
src/ibusinputcontext.h | 11 +++++
src/ibusmarshalers.list | 1 +
13 files changed, 317 insertions(+), 8 deletions(-)
diff --git a/bus/engineproxy.c b/bus/engineproxy.c diff --git a/bus/engineproxy.c b/bus/engineproxy.c
index 64dda4f..4193a30 100644 index 64dda4f..4193a30 100644
@ -370,6 +373,58 @@ index 2ddae8c..09a2260 100644
} }
#ifdef OS_CHROMEOS #ifdef OS_CHROMEOS
diff --git a/ibus/engine.py b/ibus/engine.py
index b1df2fe..ec42fa4 100644
--- a/ibus/engine.py
+++ b/ibus/engine.py
@@ -46,6 +46,9 @@ class EngineBase(object.Object):
def set_cursor_location(self, x, y, w, h):
pass
+ def set_surrounding_text(self, text, cursor_index):
+ pass
+
def set_capabilities(self, cap):
pass
@@ -163,6 +166,9 @@ class EngineProxy(interface.IEngine):
def SetCursorLocation(self, x, y, w, h):
return self.__engine.set_cursor_location(x, y, w, h)
+ def SetSurroundingText(self, text, cursor_index):
+ return self.__engine.set_surrounding_text(text, cursor_index)
+
def SetCapabilities(self, caps):
return self.__engine.set_capabilities(caps)
diff --git a/ibus/interface/iengine.py b/ibus/interface/iengine.py
index 4d42c2d..ee23efe 100644
--- a/ibus/interface/iengine.py
+++ b/ibus/interface/iengine.py
@@ -50,6 +50,9 @@ class IEngine(dbus.service.Object):
@method(in_signature="iiii")
def SetCursorLocation(self, x, y, w, h): pass
+ @method(in_signature="vu")
+ def SetSurroundingText(self, text, cursor_index): pass
+
@method(in_signature="u")
def SetCapabilities(self, cap): pass
diff --git a/ibus/interface/iinputcontext.py b/ibus/interface/iinputcontext.py
index 89f6dbd..2db1c9b 100644
--- a/ibus/interface/iinputcontext.py
+++ b/ibus/interface/iinputcontext.py
@@ -49,6 +49,9 @@ class IInputContext(dbus.service.Object):
@method(in_signature="iiii")
def SetCursorLocation(self, x, y, w, h): pass
+ @method(in_signature="vu")
+ def SetSurroundingText(self, text, cursor_index): pass
+
@method()
def FocusIn(self): pass
diff --git a/src/ibusengine.c b/src/ibusengine.c diff --git a/src/ibusengine.c b/src/ibusengine.c
index 899d7c8..a5101bb 100644 index 899d7c8..a5101bb 100644
--- a/src/ibusengine.c --- a/src/ibusengine.c

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@
Name: ibus Name: ibus
Version: 1.3.7 Version: 1.3.7
Release: 4%{?dist} Release: 5%{?dist}
Summary: Intelligent Input Bus for Linux OS Summary: Intelligent Input Bus for Linux OS
License: LGPLv2+ License: LGPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
@ -279,7 +279,7 @@ fi
%{_datadir}/gtk-doc/html/* %{_datadir}/gtk-doc/html/*
%changelog %changelog
* Tue Sep 14 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.3.7-4 * Tue Sep 14 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.3.7-5
- Added ibus-621795-engineproxy-segv.patch - Added ibus-621795-engineproxy-segv.patch
Fixes crash in ibus_object_destroy Fixes crash in ibus_object_destroy
- Added ibus-626652-leak.patch - Added ibus-626652-leak.patch