Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2010-10-14 00:56:34 (GMT)
committer Gary Martin <gary@garycmartin.com>2010-10-14 00:56:34 (GMT)
commitd06aa9a555495d48a8e91d1222cdce4e5a947245 (patch)
tree0f6e414781bbbd2b890ee420b304d15445d9486c /activity.py
parent2e2acd9b55e23010c93021b9690aebec744cd88a (diff)
Fixed special case in Sugar 0.82 and 0.84 where idle events are not added by default.
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index e9e847a..30a21d0 100644
--- a/activity.py
+++ b/activity.py
@@ -44,6 +44,8 @@ class PhysicsActivity(olpcgames.PyGameActivity):
def __init__(self, handle):
super(PhysicsActivity, self).__init__(handle)
self.metadata['mime_type'] = 'application/x-physics-activity'
+ self.add_events(gtk.gdk.ALL_EVENTS_MASK |
+ gtk.gdk.VISIBILITY_NOTIFY_MASK)
self.connect('visibility-notify-event', self._focus_event)
self.connect('window-state-event', self._window_event)