diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-02-23 17:11:51 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-02-23 17:11:51 (GMT) |
commit | 30e67cc22617ae5f25ea8ed5fcc5120839898717 (patch) | |
tree | 3c48938c08ec698a932cf1fd6d5346a44fcf1e6c | |
parent | 1e69d8554cada83e69defe10ef2bdebb141a4184 (diff) |
Reveal the palette on right click on an activity icon #409
-rw-r--r-- | src/sugar/graphics/icon.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sugar/graphics/icon.py b/src/sugar/graphics/icon.py index 6057652..d047d56 100644 --- a/src/sugar/graphics/icon.py +++ b/src/sugar/graphics/icon.py @@ -884,8 +884,11 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem): return size, size def do_button_press_event(self, event): - self.emit_activated() - return True + if event.button == 1: + self.emit_activated() + return True + else: + return False def create_palette(self): return None |