[gnome-control-center] region: Honor the 'show-all-sources' gsettings key
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Honor the 'show-all-sources' gsettings key
- Date: Tue, 4 Sep 2012 12:07:28 +0000 (UTC)
commit 2a87480f2654fa18cd683497fe2a569f732dab68
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Sep 3 01:36:20 2012 +0200
region: Honor the 'show-all-sources' gsettings key
This setting overrides our supported IBus engines whitelist and makes
us show every engine installed on the system when enabled.
https://bugzilla.gnome.org/show_bug.cgi?id=682313
panels/region/gnome-region-panel-input.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-input.c b/panels/region/gnome-region-panel-input.c
index 22718ea..956fa31 100644
--- a/panels/region/gnome-region-panel-input.c
+++ b/panels/region/gnome-region-panel-input.c
@@ -195,6 +195,7 @@ fetch_ibus_engines_result (GObject *object,
GAsyncResult *result,
GtkBuilder *builder)
{
+ gboolean show_all_sources;
GList *list, *l;
GError *error;
@@ -210,6 +211,8 @@ fetch_ibus_engines_result (GObject *object,
return;
}
+ show_all_sources = g_settings_get_boolean (input_sources_settings, "show-all-sources");
+
/* Maps engine ids to engine description objects */
ibus_engines = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, g_object_unref);
@@ -218,7 +221,7 @@ fetch_ibus_engines_result (GObject *object,
IBusEngineDesc *engine = l->data;
const gchar *engine_id = ibus_engine_desc_get_name (engine);
- if (strv_contains (supported_ibus_engines, engine_id))
+ if (show_all_sources || strv_contains (supported_ibus_engines, engine_id))
g_hash_table_replace (ibus_engines, (gpointer)engine_id, engine);
else
g_object_unref (engine);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]