[gnome-shell/wip/carlosg/osk-updates: 24/49] keyboard: Drop needless signal from OSK Key object
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-updates: 24/49] keyboard: Drop needless signal from OSK Key object
- Date: Tue, 5 Jul 2022 10:56:29 +0000 (UTC)
commit e240e8415dc6a0c7597dc710682341195b2c19b4
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Apr 14 20:49:00 2022 +0200
keyboard: Drop needless signal from OSK Key object
The 'pressed' signal will be emitted in the same circumstances now,
there's no need for a separate 'activated' signal.
js/ui/keyboard.js | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 6cc007b441..8bd2dc5afb 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -298,7 +298,6 @@ var LanguageSelectionPopup = class extends PopupMenu.PopupMenu {
var Key = GObject.registerClass({
Signals: {
- 'activated': {},
'long-press': {},
'pressed': {},
'released': {},
@@ -362,8 +361,6 @@ var Key = GObject.registerClass({
}
_press(button) {
- this.emit('activated');
-
if (button === this.keyButton) {
this._pressTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
KEY_LONG_PRESS_TIME,
@@ -922,7 +919,7 @@ var EmojiPager = GObject.registerClass({
key.keyButton.set_button_mask(0);
- key.connect('activated', () => {
+ key.connect('pressed', () => {
this._currentKey = key;
});
key.connect('long-press', () => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]