diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-07-18 14:59:47 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-07-18 14:59:47 (GMT) |
commit | daa95aadd71aadc2ccb29424cfb84ed6731fdc01 (patch) | |
tree | a346205f391c2cfadb1f3114475a3a238de519ac /shell/view/frame/frameinvoker.py | |
parent | de2d4ef43bf3fb20b388be79fb95447525772877 (diff) |
Place palettes at cursor for free views.
Diffstat (limited to 'shell/view/frame/frameinvoker.py')
-rw-r--r-- | shell/view/frame/frameinvoker.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/view/frame/frameinvoker.py b/shell/view/frame/frameinvoker.py index 0062f06..64bc567 100644 --- a/shell/view/frame/frameinvoker.py +++ b/shell/view/frame/frameinvoker.py @@ -18,12 +18,16 @@ import gtk from sugar.graphics import units +from sugar.graphics.palette import Palette from sugar.graphics.palette import CanvasInvoker class FrameCanvasInvoker(CanvasInvoker): def __init__(self, item): CanvasInvoker.__init__(self, item) + def get_default_position(self): + return Palette.AROUND + def get_screen_area(self): x = units.grid_to_pixels(1) y = units.grid_to_pixels(1) |