LEFT | RIGHT |
(Both sides are equal) |
1 # vim:set et sts=4 sw=4: | 1 # vim:set et sts=4 sw=4: |
2 # | 2 # |
3 # ibus - The Input Bus | 3 # ibus - The Input Bus |
4 # | 4 # |
5 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com> | 5 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com> |
6 # Copyright (c) 2007-2010 Red Hat, Inc. | 6 # Copyright (c) 2007-2010 Red Hat, Inc. |
7 # | 7 # |
8 # This library is free software; you can redistribute it and/or | 8 # This library is free software; you can redistribute it and/or |
9 # modify it under the terms of the GNU Lesser General Public | 9 # modify it under the terms of the GNU Lesser General Public |
10 # License as published by the Free Software Foundation; either | 10 # License as published by the Free Software Foundation; either |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 self._menu.update_property(prop) | 172 self._menu.update_property(prop) |
173 | 173 |
174 def do_toggled(self): | 174 def do_toggled(self): |
175 if self.get_active(): | 175 if self.get_active(): |
176 self._menu.popup(0, gtk.get_current_event_time(), self) | 176 self._menu.popup(0, gtk.get_current_event_time(), self) |
177 | 177 |
178 def destroy(self): | 178 def destroy(self): |
179 self._menu.destroy() | 179 self._menu.destroy() |
180 self._menu = None | 180 self._menu = None |
181 super(MenuToolButton, self).destroy() | 181 super(MenuToolButton, self).destroy() |
LEFT | RIGHT |