This commit is contained in:
Marco Pesenti Gritti 2006-09-08 01:54:52 +02:00
parent d8d80854d6
commit d58936869f
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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)