diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2012-01-05 17:34:30 -0500 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2012-02-21 11:51:53 -0500 |
commit | fc72d2f6b11595e38216fbffd1048e2ba07d524d (patch) | |
tree | 0250eb2cc81af8d0e5f71c433a5e16ec8e9c17b3 /bus | |
parent | 2872ba0f68bc960668eddabd00c39529235919d6 (diff) |
refine code for reviewing
Diffstat (limited to 'bus')
-rw-r--r-- | bus/Makefile.am | 2 | ||||
-rw-r--r-- | bus/ibusimpl.c | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/bus/Makefile.am b/bus/Makefile.am index 34686ef2..118f80c2 100644 --- a/bus/Makefile.am +++ b/bus/Makefile.am @@ -37,7 +37,7 @@ AM_CFLAGS = \ -DPKGDATADIR=\"$(pkgdatadir)\" \ -DLIBEXECDIR=\"$(libexecdir)\" \ -DBINDIR=\"@bindir@\" \ - -DIBUS_DISABLE_DEPRECATED \ + -DIBUS_DISABLE_DEPRECATED \ $(INCLUDES) \ $(NULL) AM_LDADD = \ diff --git a/bus/ibusimpl.c b/bus/ibusimpl.c index cbe087f5..902ec105 100644 --- a/bus/ibusimpl.c +++ b/bus/ibusimpl.c @@ -49,8 +49,6 @@ struct _BusIBusImpl { /* a fake input context for global engine support */ BusInputContext *fake_context; - /* a list of engines that are preloaded. */ - // GList *engine_list; /* a list of engines that are started by a user (without the --ibus command line flag.) */ GList *register_engine_list; @@ -552,15 +550,12 @@ bus_ibus_impl_set_focused_context (BusIBusImpl *ibus, } BusEngineProxy *engine = NULL; - gboolean is_enabled = FALSE; if (ibus->focused_context) { if (ibus->use_global_engine) { /* dettach engine from the focused context */ engine = bus_input_context_get_engine (ibus->focused_context); if (engine) { - // is_enabled = bus_input_context_is_enabled (ibus->focused_context); - is_enabled = TRUE; g_object_ref (engine); bus_input_context_set_engine (ibus->focused_context, NULL); } |