[gnome-flashback/wip/segeiger/inputmethods: 5/6] input-sources: add gf_ibus_manager_get_ibus_manager
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback/wip/segeiger/inputmethods: 5/6] input-sources: add gf_ibus_manager_get_ibus_manager
- Date: Sat, 19 Sep 2015 00:29:36 +0000 (UTC)
commit 4b3a87bf6abff06740061389637a3945ec444fa2
Author: Sebastian Geiger <sbastig gmx net>
Date: Fri Sep 18 02:57:43 2015 +0200
input-sources: add gf_ibus_manager_get_ibus_manager
gnome-flashback/libinput-sources/gf-ibus-manager.c | 9 +++++++++
gnome-flashback/libinput-sources/gf-ibus-manager.h | 2 ++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-ibus-manager.c
b/gnome-flashback/libinput-sources/gf-ibus-manager.c
index e939c2b..79a79d7 100644
--- a/gnome-flashback/libinput-sources/gf-ibus-manager.c
+++ b/gnome-flashback/libinput-sources/gf-ibus-manager.c
@@ -383,6 +383,15 @@ gf_ibus_manager_new (void)
return g_object_new (GF_TYPE_IBUS_MANAGER, NULL);
}
+GfIBusManager *gf_ibus_manager_get_ibus_manager (void)
+{
+ static GfIBusManager* manager = NULL;
+ if (manager == NULL) {
+ manager = gf_ibus_manager_new ();
+ }
+ return manager;
+}
+
void
gf_ibus_manager_preload_engines (GfIBusManager *manager,
const gchar * const *ids)
diff --git a/gnome-flashback/libinput-sources/gf-ibus-manager.h
b/gnome-flashback/libinput-sources/gf-ibus-manager.h
index 7cafcb1..e786947 100644
--- a/gnome-flashback/libinput-sources/gf-ibus-manager.h
+++ b/gnome-flashback/libinput-sources/gf-ibus-manager.h
@@ -27,6 +27,8 @@ G_DECLARE_FINAL_TYPE (GfIBusManager, gf_ibus_manager,
GfIBusManager *gf_ibus_manager_new (void);
+GfIBusManager *gf_ibus_manager_get_ibus_manager (void);
+
void gf_ibus_manager_preload_engines (GfIBusManager *manager,
const gchar * const *ids);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]