[gnome-shell/wip/carlosg/cleanup-gtk-usage: 3/17] keyboard: Drop GDK API usage
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/cleanup-gtk-usage: 3/17] keyboard: Drop GDK API usage
- Date: Wed, 30 Jan 2019 21:50:48 +0000 (UTC)
commit b10606e8842fe06257cffb380305825540b6da86
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Nov 26 13:39:57 2018 +0100
keyboard: Drop GDK API usage
Use the misnamed but equivalent Clutter function.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/317
js/ui/keyboard.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index a30467006..a57326361 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -2,7 +2,6 @@
const Atspi = imports.gi.Atspi;
const Clutter = imports.gi.Clutter;
-const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
@@ -280,7 +279,7 @@ var Key = class Key {
_getKeyval(key) {
let unicode = String.charCodeAt(key, 0);
- return Gdk.unicode_to_keyval(unicode);
+ return Clutter.unicode_to_keysym(unicode);
}
_press(key) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]