[Sugar-devel] opening a url with WebActivity

C. Scott Ananian cscott at laptop.org
Fri Aug 12 20:19:42 EDT 2011


I'm arguing that a more general mechanism would be even better.
 --scott

On Friday, August 12, 2011, Martin Abente <martin.abente.lahaye at gmail.com>
wrote:
> 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 <
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 <Sugar-devel at lists.sugarlabs.org>
>> http://lists.sugarlabs.org/listinfo/sugar-devel <
http://lists.sugarlabs.org/listinfo/sugar-devel>
>>
>
>

-- 
      ( http://cscott.net )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110812/53c018f0/attachment.html>


More information about the Sugar-devel mailing list