summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2009-02-18 17:26:19 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2009-02-18 17:26:19 +0800
commit1e13b3091c7b474c8b51c46eae83074002c0c0cf (patch)
tree2bd94ec77a53eb8ecf5caa6d205f6e8b02bc6d58
parentfb135922afab3b86365a251ea708cb4108f93835 (diff)
downloadibus-1e13b3091c7b474c8b51c46eae83074002c0c0cf.tar.gz
ibus-1e13b3091c7b474c8b51c46eae83074002c0c0cf.tar.xz
ibus-1e13b3091c7b474c8b51c46eae83074002c0c0cf.zip
Show default icon on language bar for engine without icon.
-rw-r--r--ui/gtk/panel.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gtk/panel.py b/ui/gtk/panel.py
index 6325df0..5e3b58b 100644
--- a/ui/gtk/panel.py
+++ b/ui/gtk/panel.py
@@ -166,6 +166,8 @@ class Panel(ibus.PanelBase):
return self.__status_icon
def __set_im_icon(self, icon_name):
+ if not icon_name:
+ icon_name = "engine-default"
self.__language_bar.set_im_icon(icon_name)
if icon_name.startswith("/"):
self.__status_icon.set_from_file(icon_name)