Accepting request 482353 from GNOME:Factory
Bugfix OBS-URL: https://build.opensuse.org/request/show/482353 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gedit-plugins?expand=0&rev=44
This commit is contained in:
commit
92c1e739a7
29
bracketcompletion-use-key-release-event-to-work-wi.patch
Normal file
29
bracketcompletion-use-key-release-event-to-work-wi.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 7c2ce196a6bedeb903de840ca5416a06ca918b2b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peng Wu <alexepico@gmail.com>
|
||||||
|
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
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 1 12:59:52 UTC 2017 - hillwood@opensuse.org
|
||||||
|
|
||||||
|
- 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
|
Thu Sep 29 12:28:02 UTC 2016 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gedit-plugins
|
# 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.
|
# Copyright (c) 2009 Dominique Leuenberger, Almere, The Netherlands.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -25,6 +25,8 @@ Version: 3.22.0
|
|||||||
Release: 0
|
Release: 0
|
||||||
Source: http://download.gnome.org/sources/gedit-plugins/3.22/%{name}-%{version}.tar.xz
|
Source: http://download.gnome.org/sources/gedit-plugins/3.22/%{name}-%{version}.tar.xz
|
||||||
Source1: gedit-plugins.SUSE
|
Source1: gedit-plugins.SUSE
|
||||||
|
# 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
|
Url: http://live.gnome.org/GeditPlugins
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
@ -272,6 +274,7 @@ logs access and leave event for documents used with gedit.
|
|||||||
%lang_package
|
%lang_package
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
install %{S:1} .
|
install %{S:1} .
|
||||||
%if !0%{?is_opensuse}
|
%if !0%{?is_opensuse}
|
||||||
translation-update-upstream
|
translation-update-upstream
|
||||||
|
Loading…
x
Reference in New Issue
Block a user