Adapt to the new api... get back the browser running
This commit is contained in:
parent
37d6c00fc3
commit
cdf7583d39
@ -4,7 +4,6 @@ import threading
|
||||
|
||||
import sugar.env
|
||||
|
||||
from sugar.p2p.Group import LocalGroup
|
||||
from sugar.browser.WebActivity import WebActivity
|
||||
from sugar.browser.BrowserActivity import BrowserActivity
|
||||
|
||||
@ -30,7 +29,6 @@ class BrowserShell(dbus.service.Object):
|
||||
dbus.service.Object.__init__(self, bus_name, object_path)
|
||||
|
||||
self.__browsers = []
|
||||
self._group = LocalGroup()
|
||||
|
||||
def open_web_activity(self):
|
||||
web_activity = WebActivity(self)
|
||||
@ -49,6 +47,6 @@ class BrowserShell(dbus.service.Object):
|
||||
|
||||
@dbus.service.method('com.redhat.Sugar.BrowserShell')
|
||||
def open_browser(self, uri):
|
||||
browser = BrowserActivity(self._group, uri)
|
||||
browser = BrowserActivity(None, uri)
|
||||
self.__browsers.append(browser)
|
||||
browser.connect_to_shell()
|
||||
|
@ -13,10 +13,9 @@ pygtk.require('2.0')
|
||||
import gtk, gobject, pango
|
||||
|
||||
from sugar.shell import activity
|
||||
from sugar.p2p.Group import Group
|
||||
from sugar.p2p import Buddy
|
||||
from sugar.p2p.Group import LocalGroup
|
||||
from sugar.p2p.Service import Service
|
||||
from sugar.presence.Group import Group
|
||||
from sugar.presence import Buddy
|
||||
from sugar.presence.Service import Service
|
||||
from sugar.p2p.Stream import Stream
|
||||
from sugar.p2p import network
|
||||
from sugar.session.LogWriter import LogWriter
|
||||
|
Loading…
Reference in New Issue
Block a user