42
const CaribouKeyboardIface = {
43
name: 'org.gnome.Caribou.Keyboard',
44
methods: [ { name: 'Show',
52
{ name: 'SetCursorLocation',
56
{ name: 'SetEntryLocation',
60
properties: [ { name: 'Name',
66
this._init.apply(this, arguments);
42
const CaribouKeyboardIface = <interface name='org.gnome.Caribou.Keyboard'>
44
<arg type='u' direction='in' />
47
<arg type='u' direction='in' />
49
<method name='SetCursorLocation'>
50
<arg type='i' direction='in' />
51
<arg type='i' direction='in' />
52
<arg type='i' direction='in' />
53
<arg type='i' direction='in' />
55
<method name='SetEntryLocation'>
56
<arg type='i' direction='in' />
57
<arg type='i' direction='in' />
58
<arg type='i' direction='in' />
59
<arg type='i' direction='in' />
61
<property name='Name' access='read' type='s' />
64
const Key = new Lang.Class({
70
67
_init : function(key) {
192
189
this._boxPointer.hide(true);
197
function Keyboard() {
198
this._init.apply(this, arguments);
201
Keyboard.prototype = {
194
const Keyboard = new Lang.Class({
195
// HACK: we can't set Name, because it collides with Name dbus property
202
198
_init: function () {
203
DBus.session.exportObject('/org/gnome/Caribou/Keyboard', this);
199
this._impl = Gio.DBusExportedObject.wrapJSObject(CaribouKeyboardIface, this);
200
this._impl.export(Gio.DBus.session, '/org/gnome/Caribou/Keyboard');
205
202
this.actor = null;
533
530
return 'gnome-shell';
536
DBus.conformExport(Keyboard.prototype, CaribouKeyboardIface);
538
function KeyboardSource() {
539
this._init.apply(this, arguments);
542
KeyboardSource.prototype = {
543
__proto__: MessageTray.Source.prototype,
534
const KeyboardSource = new Lang.Class({
535
Name: 'KeyboardSource',
536
Extends: MessageTray.Source,
545
538
_init: function(keyboard) {
539
this.parent(_("Keyboard"));
546
540
this._keyboard = keyboard;
547
MessageTray.Source.prototype._init.call(this, _("Keyboard"));
549
542
this._setSummaryIcon(this.createNotificationIcon());
555
548
icon_size: this.ICON_SIZE });
558
handleSummaryClick: function() {
551
handleSummaryClick: function() {
559
552
let event = Clutter.get_current_event();
560
553
if (event.type() != Clutter.EventType.BUTTON_RELEASE)