Refactor the bundle registry. Move it inside
the shell and expose the parts that should be public to the shell dbus service.
This commit is contained in:
+5
-3
@@ -20,14 +20,16 @@ import logging
|
||||
import gobject
|
||||
import wnck
|
||||
|
||||
from view.home.HomeWindow import HomeWindow
|
||||
from sugar.activity.activityhandle import ActivityHandle
|
||||
from sugar.graphics.popupcontext import PopupContext
|
||||
from sugar.activity import activityfactory
|
||||
import sugar
|
||||
|
||||
from view.ActivityHost import ActivityHost
|
||||
from sugar.activity import activityfactory, bundleregistry
|
||||
from view.frame.frame import Frame
|
||||
from view.keyhandler import KeyHandler
|
||||
import sugar
|
||||
from view.home.HomeWindow import HomeWindow
|
||||
from model import bundleregistry
|
||||
|
||||
class Shell(gobject.GObject):
|
||||
def __init__(self, model):
|
||||
|
||||
@@ -20,9 +20,10 @@ import logging
|
||||
from sugar.graphics import units
|
||||
from sugar.graphics.xocolor import XoColor
|
||||
from sugar.graphics.iconbutton import IconButton
|
||||
from sugar.activity import bundleregistry
|
||||
from sugar import profile
|
||||
|
||||
from model import bundleregistry
|
||||
|
||||
class ActivityButton(IconButton):
|
||||
def __init__(self, activity, popup_context):
|
||||
IconButton.__init__(self, icon_name=activity.get_icon(),
|
||||
|
||||
@@ -17,11 +17,12 @@
|
||||
import hippo
|
||||
import gobject
|
||||
|
||||
from view.BuddyIcon import BuddyIcon
|
||||
from sugar.graphics.canvasicon import CanvasIcon
|
||||
from sugar.graphics import units
|
||||
from sugar.presence import presenceservice
|
||||
from sugar.activity import bundleregistry
|
||||
|
||||
from model import bundleregistry
|
||||
from view.BuddyIcon import BuddyIcon
|
||||
|
||||
class FriendView(hippo.CanvasBox):
|
||||
def __init__(self, shell, menu_shell, buddy, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user