Remove locale panel.
This commit is contained in:
Родитель
9c36a86731
Коммит
221a099a79
|
@ -3,13 +3,11 @@ import gobject
|
||||||
import gtk
|
import gtk
|
||||||
from ibus import keysyms
|
from ibus import keysyms
|
||||||
from ibus import interface
|
from ibus import interface
|
||||||
import panel
|
|
||||||
|
|
||||||
class Engine (interface.IEngine):
|
class Engine (interface.IEngine):
|
||||||
def __init__ (self, dbusconn, object_path):
|
def __init__ (self, dbusconn, object_path):
|
||||||
interface.IEngine.__init__ (self, dbusconn, object_path)
|
interface.IEngine.__init__ (self, dbusconn, object_path)
|
||||||
self._dbusconn = dbusconn
|
self._dbusconn = dbusconn
|
||||||
self._panel = panel.Panel ()
|
|
||||||
|
|
||||||
# methods for dbus rpc
|
# methods for dbus rpc
|
||||||
def ProcessKeyEvent (self, keyval, is_press, state):
|
def ProcessKeyEvent (self, keyval, is_press, state):
|
||||||
|
@ -23,30 +21,22 @@ class Engine (interface.IEngine):
|
||||||
|
|
||||||
def FocusIn (self):
|
def FocusIn (self):
|
||||||
print "FocusIn"
|
print "FocusIn"
|
||||||
self._panel.focus_in ()
|
|
||||||
|
|
||||||
def FocusOut (self):
|
def FocusOut (self):
|
||||||
print "FocusOut"
|
print "FocusOut"
|
||||||
self._panel.focus_out ()
|
|
||||||
|
|
||||||
def Reset (self):
|
def Reset (self):
|
||||||
print "Reset"
|
print "Reset"
|
||||||
|
|
||||||
def SetEnable (self, enable):
|
def SetEnable (self, enable):
|
||||||
self._enable = enable
|
self._enable = enable
|
||||||
self._panel.set_enable (enable)
|
|
||||||
|
|
||||||
def Destroy (self):
|
def Destroy (self):
|
||||||
print "Destroy"
|
print "Destroy"
|
||||||
self._panel.destroy ()
|
|
||||||
|
|
||||||
def SetCursorLocation (self, x, y, w, h):
|
def SetCursorLocation (self, x, y, w, h):
|
||||||
self._panel.set_cursor_location (x, y, w, h)
|
pass
|
||||||
|
|
||||||
class DemoEngine (Engine):
|
class DemoEngine (Engine):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче