Add Disable signal when bus_ibus_impl_set_context_engine_from_desc is called.
authorfujiwarat <takao.fujiwara1@gmail.com>
Thu, 25 Aug 2011 00:59:42 +0000 (09:59 +0900)
committerfujiwarat <takao.fujiwara1@gmail.com>
Thu, 25 Aug 2011 00:59:42 +0000 (09:59 +0900)
BUG=#1261
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4875049

bus/inputcontext.c

index 723b5fd..3c81688 100644 (file)
@@ -2292,6 +2292,8 @@ new_engine_cb (GObject             *obj,
                                              "Opertation was cancelled");
         }
         else {
+            /* Let BusEngineProxy call a Disable signal. */
+            bus_input_context_disable (data->context);
             bus_input_context_set_engine (data->context, engine);
             g_object_unref (engine);
             bus_input_context_enable (data->context);