diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-24 13:34:10 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-24 13:34:10 +0800 |
commit | 9b009e1a08bc76274f47ce4d64d0c186b63061d9 (patch) | |
tree | 90ff6331e3d2a77fac97b574dd60b4762d3179f1 /panel | |
parent | 975ea39af250fee96d8dbe2991ecaef094484ab7 (diff) | |
download | ibus-9b009e1a08bc76274f47ce4d64d0c186b63061d9.tar.gz ibus-9b009e1a08bc76274f47ce4d64d0c186b63061d9.tar.xz ibus-9b009e1a08bc76274f47ce4d64d0c186b63061d9.zip |
Support file as icon for StatusIcon.
Diffstat (limited to 'panel')
-rw-r--r-- | panel/panel.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/panel/panel.py b/panel/panel.py index 6ec6ffb..445bdc2 100644 --- a/panel/panel.py +++ b/panel/panel.py @@ -124,7 +124,10 @@ class Panel(ibus.PanelBase): def __set_im_icon(self, icon_name): self.__language_bar.set_im_icon(icon_name) - self.__status_icon.set_from_icon_name(icon_name) + if icon_name.startswith("/"): + self.__status_icon.set_from_file(icon_name) + else: + self.__status_icon.set_from_icon_name(icon_name) def focus_in(self, ic): self.reset() |