Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Copyright © 2018 Canonical Ltd. |
3 |
|
|
* |
4 |
|
|
* This program is free software; you can redistribute it and/or |
5 |
|
|
* modify it under the terms of the GNU General Public License as |
6 |
|
|
* published by the Free Software Foundation; either version 2 of the |
7 |
|
|
* License, or (at your option) any later version. |
8 |
|
|
* |
9 |
|
|
* This program is distributed in the hope that it will be useful, but |
10 |
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 |
|
|
* General Public License for more details. |
13 |
|
|
* |
14 |
|
|
* You should have received a copy of the GNU General Public License |
15 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
16 |
|
|
*/ |
17 |
|
|
|
18 |
|
|
#pragma once |
19 |
|
|
|
20 |
|
|
#include <config.h> |
21 |
|
|
|
22 |
|
|
#ifdef HAVE_IBUS |
23 |
|
|
#include <ibus.h> |
24 |
|
|
#endif |
25 |
|
|
|
26 |
|
|
#include <gio/gdesktopappinfo.h> |
27 |
|
|
|
28 |
|
|
#include "cc-input-source.h" |
29 |
|
|
|
30 |
|
|
G_BEGIN_DECLS |
31 |
|
|
|
32 |
|
|
#define CC_TYPE_INPUT_SOURCE_IBUS (cc_input_source_ibus_get_type ()) |
33 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcInputSourceIBus, cc_input_source_ibus, CC, INPUT_SOURCE_IBUS, CcInputSource) |
34 |
|
|
|
35 |
|
|
CcInputSourceIBus *cc_input_source_ibus_new (const gchar *engine_name); |
36 |
|
|
|
37 |
|
|
#ifdef HAVE_IBUS |
38 |
|
|
void cc_input_source_ibus_set_engine_desc (CcInputSourceIBus *source, |
39 |
|
|
IBusEngineDesc *engine_desc); |
40 |
|
|
#endif |
41 |
|
|
|
42 |
|
|
const gchar *cc_input_source_ibus_get_engine_name (CcInputSourceIBus *source); |
43 |
|
|
|
44 |
|
|
GDesktopAppInfo *cc_input_source_ibus_get_app_info (CcInputSourceIBus *source); |
45 |
|
|
|
46 |
|
|
G_END_DECLS |
47 |
|
|
|