Update to 1.3.2-5.

This commit is contained in:
Daiki Ueno 2011-06-15 10:22:03 +09:00
parent 5105ab134b
commit 3ffa03d35f
2 changed files with 43 additions and 1 deletions

33
ibus-m17n-stsreq.patch Normal file
View File

@ -0,0 +1,33 @@
From 02e72cdd3673c65d4217ea19fab7aa2fdfd449f6 Mon Sep 17 00:00:00 2001
From: Daiki Ueno <ueno@unixuser.org>
Date: Tue, 14 Jun 2011 16:10:23 +0900
Subject: [PATCH] Proclaim we will use surrounding-text, in enable().
---
src/engine.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/engine.c b/src/engine.c
index 60816b0..b68b13e 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -697,6 +697,16 @@ ibus_m17n_engine_enable (IBusEngine *engine)
IBusM17NEngine *m17n = (IBusM17NEngine *) engine;
parent_class->enable (engine);
+
+#ifdef HAVE_IBUS_ENGINE_GET_SURROUNDING_TEXT
+ /* Issue a dummy ibus_engine_get_surrounding_text() call to tell
+ input context that we will use surrounding-text. */
+ IBusText *text;
+ guint cursor_pos;
+
+ ibus_engine_get_surrounding_text (engine, &text, &cursor_pos);
+ g_object_unref (text);
+#endif /* HAVE_IBUS_ENGINE_GET_SURROUNDING_TEXT */
}
static void
--
1.7.5.2

View File

@ -2,7 +2,7 @@
Name: ibus-m17n Name: ibus-m17n
Version: 1.3.2 Version: 1.3.2
Release: 4%{?dist} Release: 5%{?dist}
Summary: The M17N engine for IBus platform Summary: The M17N engine for IBus platform
License: GPLv2+ License: GPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
@ -11,7 +11,10 @@ Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0: ibus-m17n-iok.patch Patch0: ibus-m17n-iok.patch
Patch1: ibus-m17n-HEAD.patch Patch1: ibus-m17n-HEAD.patch
# Surrounding-text support fixes. Hopefully Patch2 won't be needed
# with future IBus versions.
Patch2: ibus-m17n-stscap.patch Patch2: ibus-m17n-stscap.patch
Patch3: ibus-m17n-stsreq.patch
# The following BR is for autogen and not necessary when packging # The following BR is for autogen and not necessary when packging
# released tarballs. # released tarballs.
@ -36,6 +39,7 @@ the input table maps from m17n-db.
%patch0 -p1 -b .iok %patch0 -p1 -b .iok
%patch1 -p1 -b .HEAD %patch1 -p1 -b .HEAD
%patch2 -p1 -b .stscap %patch2 -p1 -b .stscap
%patch3 -p1 -b .stsreq
NOCONFIGURE=1 ./autogen.sh NOCONFIGURE=1 ./autogen.sh
%build %build
@ -57,6 +61,11 @@ make DESTDIR=${RPM_BUILD_ROOT} install
%{_datadir}/ibus/component/* %{_datadir}/ibus/component/*
%changelog %changelog
* Wed Jun 15 2011 Daiki Ueno <dueno@redhat.com> - 1.3.2-5
- Add ibus-m17n-stsreq.patch.
- Fix bug 711126 - ibus: surrounding text support fails for the first
syllable upon activation
* Tue Jun 7 2011 Daiki Ueno <dueno@redhat.com> - 1.3.2-4 * Tue Jun 7 2011 Daiki Ueno <dueno@redhat.com> - 1.3.2-4
- Add ibus-m17n-stscap.patch. - Add ibus-m17n-stscap.patch.
- Fix bug 711126 - ibus: surrounding text support fails for the first - Fix bug 711126 - ibus: surrounding text support fails for the first