Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-02-23 17:11:51 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-02-23 17:11:51 (GMT)
commit30e67cc22617ae5f25ea8ed5fcc5120839898717 (patch)
tree3c48938c08ec698a932cf1fd6d5346a44fcf1e6c
parent1e69d8554cada83e69defe10ef2bdebb141a4184 (diff)
Reveal the palette on right click on an activity icon #409
-rw-r--r--src/sugar/graphics/icon.py7
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