Bugfixes
This commit is contained in:
parent
d8d80854d6
commit
d58936869f
@ -4,6 +4,7 @@ from frame.PanelWindow import PanelWindow
|
||||
from sugar.canvas.IconItem import IconItem
|
||||
from sugar.canvas.IconColor import IconColor
|
||||
from sugar.canvas.GridLayout import GridGroup
|
||||
from sugar.canvas.GridLayout import GridConstraints
|
||||
from sugar.presence import PresenceService
|
||||
|
||||
class RightPanel(GridGroup):
|
||||
@ -28,9 +29,9 @@ class RightPanel(GridGroup):
|
||||
|
||||
constraints = GridConstraints(0, self.get_n_children() + 2, 1, 1)
|
||||
constraints.padding = 6
|
||||
self._layout.set_constraints(item, constraints)
|
||||
self._layout.set_constraints(icon, constraints)
|
||||
|
||||
self.add_child(icon, i)
|
||||
self.add_child(icon)
|
||||
|
||||
def remove(self, buddy):
|
||||
pass
|
||||
|
@ -82,7 +82,7 @@ class MeshGroup(goocanvas.Group):
|
||||
default_type = item.get_service().get_type()
|
||||
registry = conf.get_activity_registry()
|
||||
|
||||
bundle_id = registry.get_activity_from_type().get_id()
|
||||
activity_id = service.get_activity_id()
|
||||
bundle_id = registry.get_activity_from_type(default_type).get_id()
|
||||
activity_id = item.get_service().get_activity_id()
|
||||
|
||||
self._shell.join_activity(bundle_id, activity_id)
|
||||
|
Loading…
Reference in New Issue
Block a user