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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 elif y - menu_height <= 0: | 269 elif y - menu_height <= 0: |
270 y += button.allocation.height | 270 y += button.allocation.height |
271 else: | 271 else: |
272 if y <= monitor_allocation.height * 3 / 4: | 272 if y <= monitor_allocation.height * 3 / 4: |
273 y += button.allocation.height | 273 y += button.allocation.height |
274 else: | 274 else: |
275 y -= menu_height | 275 y -= menu_height |
276 | 276 |
277 return (x, y, False) | 277 return (x, y, False) |
278 | 278 |
LEFT | RIGHT |