From 30e67cc22617ae5f25ea8ed5fcc5120839898717 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Mon, 23 Feb 2009 18:11:51 +0100 Subject: [PATCH] Reveal the palette on right click on an activity icon #409 --- src/sugar/graphics/icon.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sugar/graphics/icon.py b/src/sugar/graphics/icon.py index 60576525..d047d56d 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