From 30e67cc22617ae5f25ea8ed5fcc5120839898717 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Mon, 23 Feb 2009 17:11:51 +0000 Subject: Reveal the palette on right click on an activity icon #409 --- 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 -- cgit v0.9.1