[gnome-control-center/wip/input-sources: 4/14] Use ibus_init



commit 5aed6ff89268caa4f412bff63ad49a8630503fe6
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 24 10:31:22 2011 -0400

    Use ibus_init
    
    This ensures that all required IBus types are registered, avoiding
    problems with deserialization.

 panels/region/gnome-region-panel-input.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-input.c b/panels/region/gnome-region-panel-input.c
index 9951312..1419fe2 100644
--- a/panels/region/gnome-region-panel-input.c
+++ b/panels/region/gnome-region-panel-input.c
@@ -124,7 +124,6 @@ populate_model (GtkListStore *store,
   GList *list, *l;
   GList *active_list;
   IBusEngineDesc *description;
-  GType type G_GNUC_UNUSED;
   const gchar *name;
   const gchar *lang;
   gchar *desc;
@@ -135,11 +134,6 @@ populate_model (GtkListStore *store,
 
   bus = ibus_bus_new ();
 
-  /* IBus forgets to register its serializable types
-   * http://code.google.com/p/ibus/issues/detail?id=1339
-   */
-  type = ibus_engine_desc_get_type ();
-
   list = ibus_bus_list_engines (bus);
   active_list = ibus_bus_list_active_engines (bus);
 
@@ -589,6 +583,8 @@ setup_input_tabs (GtkBuilder *builder)
   gchar *next = NULL;
   GtkWidget *label;
 
+  ibus_init ();
+
   /* set up the list of active inputs */
   treeview = WID("active_input_sources");
   column = gtk_tree_view_column_new ();



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