From 4f1f7e241edf9c41bc158c1367380e5b0da9a670 Mon Sep 17 00:00:00 2001 From: Yusuke Sato Date: Wed, 1 Dec 2010 22:00:44 +0900 Subject: [PATCH] Fix compile errors on Chromium OS. This is for the master branch of ibus. BUG=crosbug.com/9685 TEST=ran emerge-x86-generic ibus. Review URL: http://codereview.appspot.com/3368041 --- bus/inputcontext.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bus/inputcontext.c b/bus/inputcontext.c index 40e13b6..7e522f3 100644 --- a/bus/inputcontext.c +++ b/bus/inputcontext.c @@ -858,12 +858,10 @@ _ic_property_activate (BusInputContext *context, /* Global engine is always enabled in chromeos, * so pass PropertyActivate signal to the focused context. */ - else { - if (context->fake && - BUS_DEFAULT_IBUS->focused_context && - BUS_DEFAULT_IBUS->focused_context->engine) { - bus_engine_proxy_property_activate (BUS_DEFAULT_IBUS->focused_context->engine, prop_name, prop_state); - } + else if (context->fake) { + BusInputContext *focused_context = bus_ibus_impl_get_focused_input_context (BUS_DEFAULT_IBUS); + if (focused_context && focused_context->engine) + bus_engine_proxy_property_activate (focused_context->engine, prop_name, prop_state); } #endif -- 2.7.4