[gnome-control-center/gnome-3-8] region: Always add ibus engine widgets regardless of locale info



commit ce5d794b658be35b41eacc2c2d2c04cd23153216
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Mar 8 21:56:27 2013 +0100

    region: Always add ibus engine widgets regardless of locale info
    
    This makes sure any engine we don't have locale info for ends up under
    the Other row.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695049

 panels/region/cc-input-chooser.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index c8547ca..33d3a45 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -854,7 +854,7 @@ get_ibus_locale_infos (GtkWidget *chooser)
             }
           else
             {
-              g_warning ("IBus returned locale '%s' that we don't know about", locale);
+              add_widget_other (chooser, INPUT_SOURCE_TYPE_IBUS, engine_id);
             }
 
           g_free (locale);
@@ -882,6 +882,10 @@ get_ibus_locale_infos (GtkWidget *chooser)
                 if (!maybe_set_as_default (chooser, info, engine_id))
                   add_widget (chooser, info, INPUT_SOURCE_TYPE_IBUS, engine_id);
             }
+          else
+            {
+              add_widget_other (chooser, INPUT_SOURCE_TYPE_IBUS, engine_id);
+            }
         }
       else
         {


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