LEFT | RIGHT |
1 /* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ | 1 /* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ |
2 /* vim:set et sts=4: */ | 2 /* vim:set et sts=4: */ |
3 /* ibus - The Input Bus | 3 /* ibus - The Input Bus |
4 * Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com> | 4 * Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com> |
5 * Copyright (C) 2008-2010 Red Hat, Inc. | 5 * Copyright (C) 2008-2010 Red Hat, Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 ibus->register_engine_list = NULL; | 323 ibus->register_engine_list = NULL; |
324 ibus->contexts = NULL; | 324 ibus->contexts = NULL; |
325 ibus->focused_context = NULL; | 325 ibus->focused_context = NULL; |
326 ibus->panel = NULL; | 326 ibus->panel = NULL; |
327 ibus->registry = bus_registry_new (); | 327 ibus->registry = bus_registry_new (); |
328 | 328 |
329 g_signal_connect (ibus->registry, | 329 g_signal_connect (ibus->registry, |
330 "changed", | 330 "changed", |
331 G_CALLBACK (_registry_changed_cb), | 331 G_CALLBACK (_registry_changed_cb), |
332 ibus); | 332 ibus); |
333 /* Start the monitor of registry changes. */ | |
334 bus_registry_start_monitor_changes (ibus->registry); | 333 bus_registry_start_monitor_changes (ibus->registry); |
335 | 334 |
336 ibus->keymap = ibus_keymap_get ("us"); | 335 ibus->keymap = ibus_keymap_get ("us"); |
337 | 336 |
338 ibus->use_sys_layout = TRUE; | 337 ibus->use_sys_layout = TRUE; |
339 ibus->embed_preedit_text = TRUE; | 338 ibus->embed_preedit_text = TRUE; |
340 ibus->use_global_engine = TRUE; | 339 ibus->use_global_engine = TRUE; |
341 ibus->global_engine_name = NULL; | 340 ibus->global_engine_name = NULL; |
342 ibus->global_previous_engine_name = NULL; | 341 ibus->global_previous_engine_name = NULL; |
343 | 342 |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 return ibus->embed_preedit_text; | 1362 return ibus->embed_preedit_text; |
1364 } | 1363 } |
1365 | 1364 |
1366 BusInputContext * | 1365 BusInputContext * |
1367 bus_ibus_impl_get_focused_input_context (BusIBusImpl *ibus) | 1366 bus_ibus_impl_get_focused_input_context (BusIBusImpl *ibus) |
1368 { | 1367 { |
1369 g_assert (BUS_IS_IBUS_IMPL (ibus)); | 1368 g_assert (BUS_IS_IBUS_IMPL (ibus)); |
1370 | 1369 |
1371 return ibus->focused_context; | 1370 return ibus->focused_context; |
1372 } | 1371 } |
LEFT | RIGHT |