Show IM language & name in engine list.
authorHuang Peng <shawn.p.huang@gmail.com>
Wed, 18 Feb 2009 09:50:16 +0000 (17:50 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Wed, 18 Feb 2009 09:50:16 +0000 (17:50 +0800)
setup/enginetreeview.py

index 70130a2..091020e 100644 (file)
@@ -74,7 +74,8 @@ class EngineTreeView(gtk.TreeView):
     def __name_cell_data_cb(self, celllayout, renderer, model, iter):
         engine = self.__model.get_value(iter, 0)
         renderer.set_property("sensitive", True)
-        renderer.set_property("text", engine.longname)
+        language = ibus.get_language_name(engine.language)
+        renderer.set_property("text", "%s - %s" % (language, engine.longname))
 
     def set_engines(self, engines):
         self.__model.clear()