Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-09-29 22:24:25 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-09-29 22:24:25 (GMT)
commit4c5f367b4beaafa9e797bea15a6959bc1cab638b (patch)
tree017c2e9037b12ff4083cc24662b8258bf9fafa3e /webactivity.py
parentef7e4fc70eb5cf2b9240b0fc6ad68a7d3298b441 (diff)
Always start at the first toolbar page.
Diffstat (limited to 'webactivity.py')
-rwxr-xr-xwebactivity.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/webactivity.py b/webactivity.py
index 48e2df3..8e82930 100755
--- a/webactivity.py
+++ b/webactivity.py
@@ -58,6 +58,7 @@ IFACE = SERVICE
PATH = "/org/laptop/WebActivity"
_VIEW_SOURCE_KEY_CODE = 0x1008FF1A
+_TOOLBAR_BROWSE = 1
_logger = logging.getLogger('web-activity')
@@ -114,11 +115,11 @@ class WebActivity(activity.Activity):
self.webtitle = _('blank')
self.connect('key-press-event', self.key_press_cb)
self.sname = _sugarext.get_prgname()
- _logger.debug('ProgName: %s' %self.sname)
+ self.toolbox.set_current_toolbar(_TOOLBAR_BROWSE)
+
if handle.uri:
- self._browser.load_uri(handle.uri)
- self.toolbox.set_current_toolbar(1)
+ self._browser.load_uri(handle.uri)
elif not self._jobject.file_path and not browser:
# TODO: we need this hack until we extend the activity API for
# opening URIs and default docs.
@@ -145,7 +146,6 @@ class WebActivity(activity.Activity):
if self._shared_activity is not None:
# We are joining the activity
- self.toolbox.set_current_toolbar(1)
_logger.debug('Joined activity')
self.connect('joined', self._joined_cb)
if self.get_shared():