Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-09-03 20:48:38 (GMT)
committer flavio <fdanesse@gmail.com>2012-09-03 20:48:38 (GMT)
commit4ea9295e3e53906245b3264c5b014e535e279abb (patch)
tree542fe64c2c3393b1ec67d1464b679aed71f92b23
parent5f28d92d3410a6339e2da9840dbbd538eef30467 (diff)
FIXME: object has no attribute _shared_activity
-rw-r--r--activity.py7
-rw-r--r--activity/activity.info2
-rw-r--r--calibration_toolbar.py7
3 files changed, 11 insertions, 5 deletions
diff --git a/activity.py b/activity.py
index 4d2d1f7..69506ee 100644
--- a/activity.py
+++ b/activity.py
@@ -22,8 +22,8 @@ import telepathy.client
import locale
from gi.repository import Gtk
-from gi.repository import Gdk
-from gi.repository import GObject
+from gi.repository import Gdk
+from gi.repository import GObject
from gi.repository import Pango
from gi.repository import GdkPixbuf
@@ -85,6 +85,9 @@ class AcousticMeasureActivity(activity.Activity):
GObject.threads_init()
+ # FIXME: object has no attribute _shared_activity
+ self._shared_activity = None
+
try:
self._logger.debug("locale: " + locale.setlocale(locale.LC_ALL,
''))
diff --git a/activity/activity.info b/activity/activity.info
index 20236b0..7ab8124 100644
--- a/activity/activity.info
+++ b/activity/activity.info
@@ -3,6 +3,6 @@ name = Distance
bundle_id = org.laptop.AcousticMeasure
exec = sugar-activity activity.AcousticMeasureActivity
icon = activity-acousticmeasure
-activity_version = 31
+activity_version = 32
license = GPLv2+
show_launcher = yes
diff --git a/calibration_toolbar.py b/calibration_toolbar.py
index 3cfdf89..6e26c1b 100644
--- a/calibration_toolbar.py
+++ b/calibration_toolbar.py
@@ -14,7 +14,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-from gi.repository import Gtk, Gdk, GObject
+from gi.repository import Gtk
+from gi.repository import Gdk
+from gi.repository import GObject
+
import arange
import locale
from gettext import gettext
@@ -30,7 +33,7 @@ class CalibrationToolbar(Gtk.Toolbar):
self._offset_field.set_max_length(10)
self._offset_field.set_width_chars(10)
- bigbox = Gtk.HBox()
+ bigbox = Gtk.Box(orientation = Gtk.Orientation.HORIZONTAL)
bigbox.pack_start(offset_label, expand=False, fill=False)
bigbox.pack_end(self._offset_field, expand=False, fill=False)