[gnome-flashback] input-sources: add function to activate ibus property
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] input-sources: add function to activate ibus property
- Date: Thu, 15 Oct 2015 03:53:31 +0000 (UTC)
commit 61581fd384c73a750232196492a450deaef4a474
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Oct 15 05:45:53 2015 +0300
input-sources: add function to activate ibus property
gnome-flashback/libinput-sources/gf-ibus-manager.c | 12 ++++++++++++
gnome-flashback/libinput-sources/gf-ibus-manager.h | 18 +++++++++++-------
2 files changed, 23 insertions(+), 7 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-ibus-manager.c
b/gnome-flashback/libinput-sources/gf-ibus-manager.c
index 7975236..99b5aac 100644
--- a/gnome-flashback/libinput-sources/gf-ibus-manager.c
+++ b/gnome-flashback/libinput-sources/gf-ibus-manager.c
@@ -484,6 +484,18 @@ gf_ibus_manager_new (void)
return g_object_new (GF_TYPE_IBUS_MANAGER, NULL);
}
+void
+gf_ibus_manager_activate_property (GfIBusManager *manager,
+ const gchar *prop_name,
+ guint prop_state)
+{
+ if (!manager->panel_service)
+ return;
+
+ ibus_panel_service_property_activate (manager->panel_service,
+ prop_name, prop_state);
+}
+
IBusEngineDesc *
gf_ibus_manager_get_engine_desc (GfIBusManager *manager,
const gchar *id)
diff --git a/gnome-flashback/libinput-sources/gf-ibus-manager.h
b/gnome-flashback/libinput-sources/gf-ibus-manager.h
index c6558eb..ab2bca5 100644
--- a/gnome-flashback/libinput-sources/gf-ibus-manager.h
+++ b/gnome-flashback/libinput-sources/gf-ibus-manager.h
@@ -25,15 +25,19 @@
G_DECLARE_FINAL_TYPE (GfIBusManager, gf_ibus_manager,
GF, IBUS_MANAGER, GObject)
-GfIBusManager *gf_ibus_manager_new (void);
+GfIBusManager *gf_ibus_manager_new (void);
-IBusEngineDesc *gf_ibus_manager_get_engine_desc (GfIBusManager *manager,
- const gchar *id);
+void gf_ibus_manager_activate_property (GfIBusManager *manager,
+ const gchar *prop_name,
+ guint prop_state);
-void gf_ibus_manager_set_engine (GfIBusManager *manager,
- const gchar *id);
+IBusEngineDesc *gf_ibus_manager_get_engine_desc (GfIBusManager *manager,
+ const gchar *id);
-void gf_ibus_manager_preload_engines (GfIBusManager *manager,
- gchar **engines);
+void gf_ibus_manager_set_engine (GfIBusManager *manager,
+ const gchar *id);
+
+void gf_ibus_manager_preload_engines (GfIBusManager *manager,
+ gchar **engines);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]