diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-04-17 19:54:01 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-04-17 19:54:01 (GMT) |
commit | 734d16022e2e6f7107eb550956b48ba486f99dc4 (patch) | |
tree | cf639c23bc8738f588d407b6d4930eca91bb9070 /sugar/graphics | |
parent | b7030a74dd5208afc75be42c81201cfa72ebbcc9 (diff) |
Don't try to show the popup of a detached canvas icon.
Diffstat (limited to 'sugar/graphics')
-rw-r--r-- | sugar/graphics/canvasicon.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sugar/graphics/canvasicon.py b/sugar/graphics/canvasicon.py index d50e9f9..14f8351 100644 --- a/sugar/graphics/canvasicon.py +++ b/sugar/graphics/canvasicon.py @@ -369,6 +369,11 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem): if not self._popup: return + if not self.get_context(): + # If we have been detached from our parent, don't show up the popup + # in this case. + return + popup_context = self.get_popup_context() [x, y] = [None, None] |