Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAneesh Dogra <lionaneesh@gmail.com>2012-12-23 18:11:49 (GMT)
committer Aneesh Dogra <lionaneesh@gmail.com>2012-12-23 18:11:49 (GMT)
commit75151314656db1ed5ee26cacbe444b95e58e3748 (patch)
tree41e221a0390952f2e593aa69d0e51a35bfda8ca0
parenta401a28a1707e43c57e76a1d86add22e9167c16a (diff)
Apply walter's comments.
-rw-r--r--GNUChessActivity.py9
-rw-r--r--WebcamImages.py2
2 files changed, 5 insertions, 6 deletions
diff --git a/GNUChessActivity.py b/GNUChessActivity.py
index 7ec8c51..fcee360 100644
--- a/GNUChessActivity.py
+++ b/GNUChessActivity.py
@@ -240,6 +240,10 @@ class GNUChessActivity(activity.Activity):
group=skin_button1)
skin_button1.set_active(True)
+ toggle_factory('human', self.webcam_toggle,
+ self.view_toolbar,
+ _('Toggle Webcam'))
+
self.play_white_button = radio_factory('white-rook',
self.adjust_toolbar,
self._play_white_cb,
@@ -308,11 +312,6 @@ class GNUChessActivity(activity.Activity):
toolitem.show()
self.timer.show()
self.timer.set_sensitive(True)
-
- toggle_factory('human', self.webcam_toggle,
- self.adjust_toolbar,
- _('Toggle Webcam'))
-
self.robot_button.set_active(True)
button_factory('new-game',
diff --git a/WebcamImages.py b/WebcamImages.py
index cd4acba..0356fbd 100644
--- a/WebcamImages.py
+++ b/WebcamImages.py
@@ -15,7 +15,7 @@ import os
from sugar3.activity import activity
from gi.repository import GdkPixbuf, GObject
-WEBCAM_IMAGES_DIR = os.path.join(activity.get_bundle_path(), 'webcam_images')
+WEBCAM_IMAGES_DIR = os.path.join(activity.get_activity_root(), 'instance')
W_I_WIDTH = 300
W_I_HEIGHT = 200