[gnome-control-center/wip/input-sources: 10/15] region: Remove the input source switch keybindings handling for now



commit e21d9313ea9091dab491e3b96ab7a841975f5bdb
Author: Rui Matos <tiagomatos gmail com>
Date:   Wed Apr 18 02:00:15 2012 +0200

    region: Remove the input source switch keybindings handling for now
    
    We want to do the keybinding capturing in gnome-shell so that it also
    works in the Activities Overview. IBus wouldn't use our input source
    settings anyway so remove this for now.

 panels/region/gnome-region-panel-input.c |   43 ------------------------------
 1 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-input.c b/panels/region/gnome-region-panel-input.c
index 29fd09f..d7b327c 100644
--- a/panels/region/gnome-region-panel-input.c
+++ b/panels/region/gnome-region-panel-input.c
@@ -253,46 +253,6 @@ update_ibus_configuration (GtkTreeModel *model)
   g_object_unref (bus);
 }
 
-static void
-get_shortcuts (gchar **previous, gchar **next)
-{
-  IBusBus *bus;
-  IBusConfig *config;
-  GVariant *value;
-  const gchar **strv;
-  gsize len;
-
-  bus = ibus_bus_new ();
-  config = ibus_bus_get_config (bus);
-
-  *previous = NULL;
-  *next = NULL;
-
-  value = ibus_config_get_value (config, "general/hotkey", "previous_engine");
-  if (value)
-    {
-       strv = g_variant_get_strv (value, &len);
-       if (len > 0)
-         *previous = g_strdup (strv[0]);
-       g_free (strv);
-       g_variant_unref (value);
-    }
-
-  value = ibus_config_get_value (config, "general/hotkey", "next_engine_in_menu");
-  if (value)
-    {
-       strv = g_variant_get_strv (value, &len);
-       if (len > 0)
-         *next = g_strdup (strv[0]);
-       g_free (strv);
-       g_variant_unref (value);
-    }
-
-  g_debug ("Hotkeys: previous: %s next: %s\n", *previous, *next);
-
-  g_object_unref (bus);
-}
-
 /* List handling {{{1 */
 
 static gboolean
@@ -612,9 +572,6 @@ setup_input_tabs (GtkBuilder    *builder,
   g_signal_connect (WID("input_source_show"), "clicked",
                     G_CALLBACK (show_selected_layout), builder);
 
-  /* show the right shortcuts */
-  get_shortcuts (&previous, &next);
-
   /* use an em dash is no shortcut */
   if (!previous)
     previous = g_strdup ("\342\200\224");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]