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-08-30 12:05:47 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-08-30 12:05:47 (GMT)
commit537e353d2e24cb3932a75e9d14378e2019822644 (patch)
tree4a8057e928eb691c444bb56ebbd9c8f6835efb70 /webactivity.py
parent1c22c6493d55581bef1f5fd3465af1d896aef086 (diff)
Open browser with tab browse when started with a given handle.uri
Part of the fix for #3023
Diffstat (limited to 'webactivity.py')
-rwxr-xr-xwebactivity.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/webactivity.py b/webactivity.py
index 6c02e81..bf95bc6 100755
--- a/webactivity.py
+++ b/webactivity.py
@@ -110,6 +110,7 @@ class WebActivity(activity.Activity):
if handle.uri:
self._browser.load_uri(handle.uri)
+ toolbox.set_current_toolbar(1)
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.
@@ -308,7 +309,7 @@ class WebActivity(activity.Activity):
def _add_link_button_cb(self, button):
self._add_link()
- def key_press_cb(self, widget, event):
+ def key_press_cb(self, widget, event):
if event.state & gtk.gdk.CONTROL_MASK:
if gtk.gdk.keyval_name(event.keyval) == "l":
self._add_link()