diff --git a/SOURCES/Commit-candidate-clicked-on-with-the-mouse.patch b/SOURCES/Commit-candidate-clicked-on-with-the-mouse.patch new file mode 100644 index 0000000..4a478a2 --- /dev/null +++ b/SOURCES/Commit-candidate-clicked-on-with-the-mouse.patch @@ -0,0 +1,30 @@ +From 74ad44ba905ba8692815b0939d5364d37798d41e Mon Sep 17 00:00:00 2001 +From: Mike FABIAN +Date: Thu, 14 Nov 2013 12:42:44 +0100 +Subject: [PATCH] Commit candidate clicked on with the mouse + +See https://bugzilla.redhat.com/show_bug.cgi?id=1029822 +(Bug 1029822 - mouse selection and pagination numbering issue for ibus-typing-booster) +--- + ibus-typing-booster/engine/hunspell_table.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/ibus-typing-booster/engine/hunspell_table.py b/ibus-typing-booster/engine/hunspell_table.py +index ec2b5cd..d02fc36 100644 +--- a/ibus-typing-booster/engine/hunspell_table.py ++++ b/ibus-typing-booster/engine/hunspell_table.py +@@ -712,6 +712,11 @@ class tabengine (IBus.Engine): + if len(tokens) > 1: + self._editor._pp_phrase = tokens[-2] + ++ def do_candidate_clicked(self, index, button, state): ++ phrase = self._editor.get_string_from_lookup_table_current_page(index) ++ if phrase: ++ self.commit_string(phrase + u' ') ++ + def do_process_key_event(self, keyval, keycode, state): + '''Process Key Events + Key Events include Key Press and Key Release, +-- +1.8.4.2 + diff --git a/SPECS/ibus-typing-booster.spec b/SPECS/ibus-typing-booster.spec index e0f459e..ed90590 100644 --- a/SPECS/ibus-typing-booster.spec +++ b/SPECS/ibus-typing-booster.spec @@ -1,11 +1,12 @@ Name: ibus-typing-booster Version: 1.2.3 -Release: 2%{?dist} +Release: 4%{?dist} Summary: A typing booster engine for the IBus platform License: GPLv3+ Group: System Environment/Libraries URL: http://git.fedorahosted.org/git/?p=ibus-typing-booster.git Source0: https://fedorahosted.org/releases/i/b/ibus-typing-booster/%{name}-%{version}.tar.gz +Patch0: Commit-candidate-clicked-on-with-the-mouse.patch Requires: ibus Requires: libtranslit-m17n BuildRequires: ibus-devel,libtranslit-devel @@ -53,7 +54,7 @@ The Typing Booster engine for IBus platform. %prep %setup -q - +%patch0 -p2 -b .Commit-candidate-clicked-on-with-the-mouse %build %configure --disable-static --disable-additional @@ -74,6 +75,12 @@ make install DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true INSTALL="install -p" pkg %{_datadir}/applications/ibus-setup-typing-booster.desktop %changelog +* Fri Jan 10 2014 Mike FABIAN - 1.2.3-4 +- Commit candidate clicked on with the mouse (Related: rhbz#1038521) + +* Fri Dec 27 2013 Daniel Mach - 1.2.3-3 +- Mass rebuild 2013-12-27 + * Tue Aug 06 2013 Mike FABIAN - 1.2.3-1 - Update to 1.2.3 upstream version - Fix exception handling when trying to install a rpm package (Resolves: rhbz#986178)