diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-06-25 20:31:09 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-06-25 20:31:09 +0800 |
| commit | 1a2802e5cbb87f71cb0d3c01df1c8a02aac52c13 (patch) | |
| tree | 5b38e1e5913c85c67529ef200c631051f8bb8551 | |
| parent | 2c39917c980fcc5afd4fb493124183530ce00a52 (diff) | |
| download | ibus-1a2802e5cbb87f71cb0d3c01df1c8a02aac52c13.tar.gz ibus-1a2802e5cbb87f71cb0d3c01df1c8a02aac52c13.tar.xz ibus-1a2802e5cbb87f71cb0d3c01df1c8a02aac52c13.zip | |
Does not popup IME menu if does not have focus context.
| -rw-r--r-- | panel/panel.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/panel/panel.py b/panel/panel.py index 5c33954..303c9c2 100644 --- a/panel/panel.py +++ b/panel/panel.py @@ -170,6 +170,8 @@ class Panel (ibus.Object): return menu def _status_icon_activate_cb (self, status_icon): + if not self._focus_ic: + return menu = self._create_im_menu () menu.popup (None, None, gtk.status_icon_position_menu, @@ -178,6 +180,8 @@ class Panel (ibus.Object): self._status_icon) def _status_icon_popup_menu_cb (self, status_icon, button, active_time): + if not self._focus_ic: + return menu = self._create_im_menu () menu.popup (None, None, gtk.status_icon_position_menu, |
