[gnome-settings-daemon] keyboard: Don't migrate ibus xkb engines



commit 65bb2ba845f2b908f01d77322270e53a776ca54c
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 aa123c6..d165306 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -532,8 +532,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]