[gnome-shell] keyboard: Fix missing icons in Keypad
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] keyboard: Fix missing icons in Keypad
- Date: Sun, 9 Aug 2020 14:05:39 +0000 (UTC)
commit 6b78f58a75f4fce0ae0c1ab4d44012fc1550d18f
Author: Emre Uyguroglu <uyguremre gmail com>
Date: Thu Aug 6 13:28:03 2020 +0300
keyboard: Fix missing icons in Keypad
This is more fallout from commit 57669bca1b2.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3007
js/ui/keyboard.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 4f85336e7b..90bd17b86f 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -1091,8 +1091,8 @@ var Keypad = GObject.registerClass({
{ label: '8', keyval: Clutter.KEY_8, left: 1, top: 2 },
{ label: '9', keyval: Clutter.KEY_9, left: 2, top: 2 },
{ label: '0', keyval: Clutter.KEY_0, left: 1, top: 3 },
- { label: '⌫', keyval: Clutter.KEY_BackSpace, left: 3, top: 0 },
- { keyval: Clutter.KEY_Return, extraClassName: 'enter-key', left: 3, top: 1, height: 2 },
+ { keyval: Clutter.KEY_BackSpace, icon: 'edit-clear-symbolic', left: 3, top: 0 },
+ { keyval: Clutter.KEY_Return, extraClassName: 'enter-key', icon: 'keyboard-enter-symbolic',
left: 3, top: 1, height: 2 },
];
super._init({
@@ -1109,7 +1109,7 @@ var Keypad = GObject.registerClass({
for (let i = 0; i < keys.length; i++) {
let cur = keys[i];
- let key = new Key(cur.label || "", []);
+ let key = new Key(cur.label || "", [], cur.icon);
if (keys[i].extraClassName)
key.keyButton.add_style_class_name(cur.extraClassName);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]