keyboard: ignore D-Bus requests when the OSK isn't enabled

Fixes spurious warnings about "this.actor is null" when processing
org.gnome.Caribou.Keyboard messages when the keyboard isn't enabled.

https://bugzilla.gnome.org/show_bug.cgi?id=659940
This commit is contained in:
Dan Winship 2011-09-27 14:55:38 -04:00
parent 9c76318df8
commit 6aa411fecc

View File

@ -476,6 +476,9 @@ Keyboard.prototype = {
// D-Bus methods
Show: function(timestamp) {
if (!this._enableKeyboard)
return;
if (timestamp - this._timestamp < 0)
return;
@ -484,6 +487,9 @@ Keyboard.prototype = {
},
Hide: function(timestamp) {
if (!this._enableKeyboard)
return;
if (timestamp - this._timestamp < 0)
return;
@ -492,10 +498,16 @@ Keyboard.prototype = {
},
SetCursorLocation: function(x, y, w, h) {
if (!this._enableKeyboard)
return;
// this._setLocation(x, y);
},
SetEntryLocation: function(x, y, w, h) {
if (!this._enableKeyboard)
return;
// this._setLocation(x, y);
},