[Sugar-devel] opening a url with WebActivity

Martin Abente martin.abente.lahaye at gmail.com
Fri Aug 12 18:41:43 EDT 2011


In January I sent a patch to sugar-devel with minor changes to sugar-launch
so it would be able to pass the uri argument to the Browse activity (to open
links, etc, from other activities or sugar itself). I wonder if some have
changed mind about including it :)

On Fri, Aug 12, 2011 at 2:34 PM, Erik Blankinship <erikb at mediamods.com>wrote:

>
>>> FWIW you can take a look at the activity
>>
>> http://activities.sugarlabs.org/en-US/sugar/addon/4455
>>
>>
>>
> Thank you Rafael.  Good idea.
>
> As you suggest, this activity opens URLs inside of the current activity.
>
> hulahop.startup(os.path.join(env.get_profile_path(), 'gecko'))
> from hulahop.webview import WebView
>
>         self.webview = WebView()
> self.set_canvas(self.webview)
>         self.webview.show()
>         self.webview.load_uri('http://google.com')
>
> I am not sure if this approach will continue to work after the coming move
> from firefox to webkit.  Can anyone speak to this?
>
> To avoid problems like this, I was hoping to have my current activity
> switch to the browse activity if possible.  Is this possible?
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110812/957cf9f8/attachment.html>


More information about the Sugar-devel mailing list