[gnome-shell] inputMethod: Fix delete-surrounding-text signal
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] inputMethod: Fix delete-surrounding-text signal
- Date: Fri, 27 Mar 2020 19:52:12 +0000 (UTC)
commit 6170bea28336cfab4f1e895c4d9f816b71227bca
Author: Takao Fujiwara <tfujiwar redhat com>
Date: Wed Aug 14 17:16:46 2019 +0900
inputMethod: Fix delete-surrounding-text signal
Forward the arguments at the 'delete-surrounding-text' signal
from IBusInputContext to clutter_input_method_delete_surrounding()
so that ibus-typing-booster use the deleting surrounding text function.
Input method engines can delete the output text in applications
with this function.
This change will require a change of mutter of mutter!517
because the first arguemnt of the 'delete-surrounding-text' is INT
to express the offset of the current cursor position but
the first one of clutter_input_method_delete_surrounding() is UINT
since the Wayland spec accepts UINT in delete_surrounding()
mutter will change the type of the first one to INT in
clutter_input_method_delete_surrounding() to work with this change.
https://gitlab.gnome.org/GNOME/mutter/issues/539
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/477
js/misc/inputMethod.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/misc/inputMethod.js b/js/misc/inputMethod.js
index ec3959dd91..386c07a75a 100644
--- a/js/misc/inputMethod.js
+++ b/js/misc/inputMethod.js
@@ -97,8 +97,8 @@ class InputMethod extends Clutter.InputMethod {
this.commit(text.get_text());
}
- _onDeleteSurroundingText() {
- this.delete_surrounding();
+ _onDeleteSurroundingText(_context, offset, nchars) {
+ this.delete_surrounding(offset, nchars);
}
_onUpdatePreeditText(_context, text, pos, visible) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]