From 14e196827224e746f7f7cc96ed6f37f8e6188ff7fda1761f99a3ce688ee1e923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Thu, 23 Mar 2017 18:16:28 +0000 Subject: [PATCH 1/2] Accepting request 461345 from home:hillwood:branches:GNOME:Factory - Add bracketcompletion-use-key-release-event-to-work-wi.patch Fix boo#1027448 and bgo#778737 OBS-URL: https://build.opensuse.org/request/show/461345 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gedit-plugins?expand=0&rev=92 --- ...ion-use-key-release-event-to-work-wi.patch | 29 +++++++++++++++++++ gedit-plugins.changes | 6 ++++ gedit-plugins.spec | 5 +++- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 bracketcompletion-use-key-release-event-to-work-wi.patch diff --git a/bracketcompletion-use-key-release-event-to-work-wi.patch b/bracketcompletion-use-key-release-event-to-work-wi.patch new file mode 100644 index 0000000..6d1b45a --- /dev/null +++ b/bracketcompletion-use-key-release-event-to-work-wi.patch @@ -0,0 +1,29 @@ +From 7c2ce196a6bedeb903de840ca5416a06ca918b2b Mon Sep 17 00:00:00 2001 +From: Peng Wu +Date: Tue, 6 Sep 2016 11:13:19 +0800 +Subject: [PATCH] bracketcompletion: use key release event to work with input + method + +To work with ibus pinyin input method, +switch to use key release event. + +https://bugzilla.gnome.org/show_bug.cgi?id=778737 +--- + plugins/bracketcompletion/bracketcompletion.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/plugins/bracketcompletion/bracketcompletion.py b/plugins/bracketcompletion/bracketcompletion.py +index 9da57c9..451db2e 100644 +--- a/plugins/bracketcompletion/bracketcompletion.py ++++ b/plugins/bracketcompletion/bracketcompletion.py +@@ -248,7 +248,7 @@ class BracketCompletionPlugin(GObject.Object, Gedit.ViewActivatable): + return False + + def on_event_after(self, view, event): +- if event.type != Gdk.EventType.KEY_PRESS or \ ++ if event.type != Gdk.EventType.KEY_RELEASE or \ + event.state & (Gdk.ModifierType.CONTROL_MASK | Gdk.ModifierType.MOD1_MASK) or \ + event.keyval not in self._bracket_keyvals: + return +-- +2.9.3 \ No newline at end of file diff --git a/gedit-plugins.changes b/gedit-plugins.changes index 9ab0a9a..2470fea 100644 --- a/gedit-plugins.changes +++ b/gedit-plugins.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 1 12:59:52 UTC 2017 - hillwood@opensuse.org + +- Add bracketcompletion-use-key-release-event-to-work-wi.patch + Fix boo#1027448 and bgo#778737 + ------------------------------------------------------------------- Thu Sep 29 12:28:02 UTC 2016 - jengelh@inai.de diff --git a/gedit-plugins.spec b/gedit-plugins.spec index 9cd5676..b01673a 100644 --- a/gedit-plugins.spec +++ b/gedit-plugins.spec @@ -1,7 +1,7 @@ # # spec file for package gedit-plugins # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2009 Dominique Leuenberger, Almere, The Netherlands. # # All modifications and additions to the file contributed by third parties @@ -25,6 +25,8 @@ Version: 3.22.0 Release: 0 Source: http://download.gnome.org/sources/gedit-plugins/3.22/%{name}-%{version}.tar.xz Source1: gedit-plugins.SUSE +# PATCH-FIX-UPSTEAM boo#1027448 bgo#778737 hillwood@opensuse.org +Patch0: bracketcompletion-use-key-release-event-to-work-wi.patch Url: http://live.gnome.org/GeditPlugins BuildRequires: fdupes BuildRequires: intltool @@ -272,6 +274,7 @@ logs access and leave event for documents used with gedit. %lang_package %prep %setup -q +%patch0 -p1 install %{S:1} . %if !0%{?is_opensuse} translation-update-upstream From 0343113c9f6adb3bfe404a1990fe7ca02191c4b7af3f4ca149157c9be100928e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Thu, 23 Mar 2017 18:20:32 +0000 Subject: [PATCH 2/2] Tweak OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gedit-plugins?expand=0&rev=93 --- gedit-plugins.changes | 5 +++-- gedit-plugins.spec | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gedit-plugins.changes b/gedit-plugins.changes index 2470fea..1fdc200 100644 --- a/gedit-plugins.changes +++ b/gedit-plugins.changes @@ -1,8 +1,9 @@ ------------------------------------------------------------------- Wed Mar 1 12:59:52 UTC 2017 - hillwood@opensuse.org -- Add bracketcompletion-use-key-release-event-to-work-wi.patch - Fix boo#1027448 and bgo#778737 +- Add bracketcompletion-use-key-release-event-to-work-wi.patch: + Switch to use key release event for ibus pinyin input method + (bgo#778737, boo#1027448). ------------------------------------------------------------------- Thu Sep 29 12:28:02 UTC 2016 - jengelh@inai.de diff --git a/gedit-plugins.spec b/gedit-plugins.spec index b01673a..65bd65b 100644 --- a/gedit-plugins.spec +++ b/gedit-plugins.spec @@ -25,7 +25,7 @@ Version: 3.22.0 Release: 0 Source: http://download.gnome.org/sources/gedit-plugins/3.22/%{name}-%{version}.tar.xz Source1: gedit-plugins.SUSE -# PATCH-FIX-UPSTEAM boo#1027448 bgo#778737 hillwood@opensuse.org +# PATCH-FIX-UPSTEAM bracketcompletion-use-key-release-event-to-work-wi.patch boo#1027448 bgo#778737 hillwood@opensuse.org -- Switch to use key release event for ibus pinyin input method Patch0: bracketcompletion-use-key-release-event-to-work-wi.patch Url: http://live.gnome.org/GeditPlugins BuildRequires: fdupes