[gnome-settings-daemon/gnome-3-6] keyboard: Don't migrate ibus xkb engines
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-6] keyboard: Don't migrate ibus xkb engines
- Date: Thu, 10 Jan 2013 11:58:05 +0000 (UTC)
commit 64d21b0107971d09b811c7b2bef033b6290b2034
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Jan 10 11:31:45 2013 +0100
keyboard: Don't migrate ibus xkb engines
We never want the ibus xkb engines since they are just duplicating the
plain xkb sources.
https://bugzilla.gnome.org/show_bug.cgi?id=691459
plugins/keyboard/gsd-keyboard-manager.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-manager.c b/plugins/keyboard/gsd-keyboard-manager.c
index e048046..bd69be7 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -612,8 +612,11 @@ convert_ibus (GSettings *settings)
ibus_settings = g_settings_new ("org.freedesktop.ibus.general");
engines = g_settings_get_strv (ibus_settings, "preload-engines");
- for (e = engines; *e; ++e)
+ for (e = engines; *e; ++e) {
+ if (g_str_has_prefix (*e, "xkb:"))
+ continue;
g_variant_builder_add (&builder, "(ss)", INPUT_SOURCE_TYPE_IBUS, *e);
+ }
g_settings_set_value (settings, KEY_INPUT_SOURCES, g_variant_builder_end (&builder));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]