summaryrefslogtreecommitdiffstats
path: root/ibus/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'ibus/common.py')
-rw-r--r--ibus/common.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/ibus/common.py b/ibus/common.py
new file mode 100644
index 0000000..76eab3e
--- /dev/null
+++ b/ibus/common.py
@@ -0,0 +1,20 @@
+IBUS_ADDR = "unix:abstract=/tmp/ibus"
+# IBUS_ADDR = "tcp:host=localhost,port=7799"
+
+IBUS_IFACE = "org.freedesktop.IBus"
+IBUS_PATH = "/org/freedesktop/IBus"
+IBUS_NAME = "org.freedesktop.IBus"
+
+IBUS_ENGINE_FACTORY_IFACE = "org.freedesktop.IBus.EngineFactory"
+IBUS_ENGINE_IFACE = "org.freedesktop.IBus.Engine"
+
+def default_reply_handler ( *args):
+ pass
+
+def default_error_handler (e):
+ print e
+
+DEFAULT_ASYNC_HANDLERS = {
+ "reply_handler" : default_reply_handler,
+ "error_handler" : default_error_handler
+}