Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-11-29 18:10:18 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-11-29 18:10:18 (GMT)
commite456cf1c9ec47e7821b23fb48c9fe6fd6bdc8089 (patch)
treebdde53d13fb1f72fc14f507d71aa5163e742b59f
parent1497ebc0063e7e4c5b4169c6746fd84b25573caa (diff)
Fixup for previous commit - SL #4224
The palette can be None. Signed-off-by: Manuel Quiñones <manuq@laptop.org>
-rw-r--r--src/sugar3/graphics/icon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py
index 5bdb3b8..a554324 100644
--- a/src/sugar3/graphics/icon.py
+++ b/src/sugar3/graphics/icon.py
@@ -727,7 +727,7 @@ class CanvasIcon(EventIcon):
self.unset_state_flags(Gtk.StateFlags.PRELIGHT)
def __button_press_event_cb(self, icon, event):
- if not self.palette.is_up():
+ if self.palette and not self.palette.is_up():
self.set_state_flags(self.get_state_flags() | Gtk.StateFlags.ACTIVE,
clear=True)