From 537e353d2e24cb3932a75e9d14378e2019822644 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 30 Aug 2007 12:05:47 +0000 Subject: Open browser with tab browse when started with a given handle.uri Part of the fix for #3023 --- 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() -- cgit v0.9.1