Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ActivityHost.py1
-rw-r--r--shell/home/DonutItem.py6
-rw-r--r--shell/panel/FriendsPanel.py4
3 files changed, 6 insertions, 5 deletions
diff --git a/shell/ActivityHost.py b/shell/ActivityHost.py
index 37628c7..6bf3d6e 100644
--- a/shell/ActivityHost.py
+++ b/shell/ActivityHost.py
@@ -42,7 +42,6 @@ class ActivityHost:
return conf.get_profile().get_color()
def share(self):
- self._people_window.share()
self._activity.share()
def get_shared(self):
diff --git a/shell/home/DonutItem.py b/shell/home/DonutItem.py
index a6b49ea..fcb13ea 100644
--- a/shell/home/DonutItem.py
+++ b/shell/home/DonutItem.py
@@ -5,8 +5,8 @@ import goocanvas
from sugar.canvas.IconItem import IconItem
class PieceIcon(IconItem):
- def __init__(self, piece_item, icon_name, color, **kwargs):
- IconItem.__init__(self, icon_name, color, 48, **kwargs)
+ def __init__(self, piece_item, **kwargs):
+ IconItem.__init__(self, size=48, **kwargs)
self._piece_item = piece_item
def construct(self):
@@ -39,7 +39,7 @@ class PieceItem(goocanvas.Path):
return self._icon
def set_icon(self, icon_name, color):
- self._icon = PieceIcon(self, icon_name, color)
+ self._icon = PieceIcon(self, icon_name=icon_name, color=color)
self.get_parent().add_child(self._icon)
self._icon.construct()
diff --git a/shell/panel/FriendsPanel.py b/shell/panel/FriendsPanel.py
index d0556f5..aec995e 100644
--- a/shell/panel/FriendsPanel.py
+++ b/shell/panel/FriendsPanel.py
@@ -29,7 +29,9 @@ class ActionsBar(goocanvas.Group):
self.add_child(icon)
def __share_clicked_cb(self, item):
- pass
+ activity = self._shell.get_current_activity()
+ if activity != None:
+ activity.share()
def __invite_clicked_cb(self, item):
pass