Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-10-08 17:16:54 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-10-08 17:16:54 (GMT)
commit974f6fd0f93c6976b7fd8c51b5ca6a318bee66b5 (patch)
tree1e0355746a66c0a11c72665fb8f8aa2fdb9412cc
parent89843baadc3eaabdedca9fce82579e8e131f127c (diff)
Start on read toolbar since it shares the name with the activity
-rw-r--r--NEWS3
-rw-r--r--readactivity.py5
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e10b83a..c83cb66 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+* Adopt to actvivity launch changes (erikos)
+* Start on read toolbar since it shares the name with the activity (erikos)
+
32
* Update spanish translation
diff --git a/readactivity.py b/readactivity.py
index 2065bae..9b8e8bd 100644
--- a/readactivity.py
+++ b/readactivity.py
@@ -34,6 +34,8 @@ _HARDWARE_MANAGER_INTERFACE = 'org.laptop.HardwareManager'
_HARDWARE_MANAGER_SERVICE = 'org.laptop.HardwareManager'
_HARDWARE_MANAGER_OBJECT_PATH = '/org/laptop/HardwareManager'
+_TOOLBAR_READ = 2
+
class ReadHTTPRequestHandler(network.ChunkedGlibHTTPRequestHandler):
def translate_path(self, path):
return self.server._filepath
@@ -120,6 +122,9 @@ class ReadActivity(activity.Activity):
if handle.uri:
self._load_document(handle.uri)
+ # start on the read toolbar
+ self.toolbox.set_current_toolbar(_TOOLBAR_READ)
+
if self._shared_activity or not self._document:
self._tried_buddies = []
if self.get_shared():