[gnome-flashback] input-sources: implement properties_registered_cb
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] input-sources: implement properties_registered_cb
- Date: Thu, 15 Oct 2015 03:53:46 +0000 (UTC)
commit 0919bfb4b36c00712abeee1e13c1b5f4dca33eac
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Oct 15 06:44:10 2015 +0300
input-sources: implement properties_registered_cb
.../libinput-sources/gf-input-source-manager.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-input-source-manager.c
b/gnome-flashback/libinput-sources/gf-input-source-manager.c
index 10145a1..2e37685 100644
--- a/gnome-flashback/libinput-sources/gf-input-source-manager.c
+++ b/gnome-flashback/libinput-sources/gf-input-source-manager.c
@@ -897,6 +897,20 @@ properties_registered_cb (GfIBusManager *ibus_manager,
IBusPropList *prop_list,
gpointer user_data)
{
+ GfInputSourceManager *manager;
+ GfInputSource *source;
+
+ manager = GF_INPUT_SOURCE_MANAGER (user_data);
+ source = (GfInputSource *) g_hash_table_lookup (manager->ibus_sources,
+ engine_name);
+
+ if (!source)
+ return;
+
+ gf_input_source_set_properties (source, prop_list);
+
+ if (compare_sources (source, manager->current_source))
+ g_signal_emit (manager, signals[SIGNAL_CURRENT_SOURCE_CHANGED], 0, NULL);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]