[gnome-control-center/wip/input-sources: 11/14] region: We won't use IBus' keybindings



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

    region: We won't use IBus' keybindings

 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 3f0401f5..492b134 100644
--- a/panels/region/gnome-region-panel-input.c
+++ b/panels/region/gnome-region-panel-input.c
@@ -249,46 +249,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
@@ -608,9 +568,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]