diff options
author | Benjamin Schwartz <bens@alum.mit.edu> | 2007-11-03 03:25:30 (GMT) |
---|---|---|
committer | Benjamin Schwartz <bens@alum.mit.edu> | 2007-11-03 03:25:30 (GMT) |
commit | 2b9255b43d7ceb79a9c2cdcf2d6db18f84db8760 (patch) | |
tree | 2e2e122fc6f9ef580e184fba5265ff9f58b4b65b /activity.py | |
parent | 0956d8f62e119ace91f5297118e17271d61262bc (diff) |
Sugar doesn\'t call threads_init anymore
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activity.py b/activity.py index 00f0f04..cc53605 100644 --- a/activity.py +++ b/activity.py @@ -16,6 +16,7 @@ """AcousticMeasure Activity: Uses sound propagation delay to measure distance""" +import gobject import gtk import gtk.gdk import time @@ -61,6 +62,7 @@ class AcousticMeasureActivity(Activity): def __init__(self, handle): """Set up the Acoustic Tape Measure activity.""" Activity.__init__(self, handle) + gobject.threads_init() #self.set_title(gettext('Acoustic Tape Measure Activity')) self._logger = logging.getLogger('acousticmeasure-activity') |