Fix a typo, and create the engine after create the input context.
authorHuang Peng <shawn.p.huang@gmail.com>
Sun, 15 Feb 2009 06:27:37 +0000 (14:27 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Sun, 15 Feb 2009 06:27:37 +0000 (14:27 +0800)
bus/engineproxy.c
bus/ibusimpl.c

index 6fc111f..647845b 100644 (file)
@@ -636,7 +636,7 @@ bus_engine_proxy_set_capabilities (BusEngineProxy *engine,
     g_assert (BUS_IS_ENGINE_PROXY (engine));
 
     ibus_proxy_call ((IBusProxy *) engine,
-                     "SetCapabilites",
+                     "SetCapabilities",
                      G_TYPE_UINT, &caps,
                      G_TYPE_INVALID);
 
index 3af090d..2e39dc4 100644 (file)
@@ -698,6 +698,8 @@ _ibus_create_input_context (BusIBusImpl     *ibus,
     context = bus_input_context_new (connection, client);
     ibus->contexts = g_list_append (ibus->contexts, context);
 
+    _context_request_engine_cb (context, NULL, ibus);
+
     static const struct {
         gchar *name;
         GCallback callback;