ibus-ui-gtk3: Use longname in IME switch UI.
authorPeng Huang <shawn.p.huang@gmail.com>
Tue, 24 Jan 2012 17:15:40 +0000 (12:15 -0500)
committerPeng Huang <shawn.p.huang@gmail.com>
Tue, 21 Feb 2012 16:52:27 +0000 (11:52 -0500)
ui/gtk3/panel.vala

index 8eeda0f..61d24bb 100644 (file)
@@ -321,10 +321,8 @@ class Panel : IBus.PanelService {
 
         // Append IMEs
         foreach (var engine in m_engines) {
-            // var lang =  engine.get_language();
-            // var name = engine.get_name();
-            var desc = engine.get_description();
-            var item = new Gtk.ImageMenuItem.with_label(desc);
+            var longname = engine.get_longname();
+            var item = new Gtk.ImageMenuItem.with_label(longname);
             if (engine.get_icon() != "") {
                 var icon = new IconWidget(engine.get_icon(), width);
                  item.set_image(icon);