Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-09-09 11:25:56 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-09-09 11:25:56 (GMT)
commit4cca5dc9ff5cf8cb034259728ae64491b33b69e6 (patch)
treec842813e90e89ee47a3e5b2754b1dae7e95d410a /shell
parent2b1a11fb66ea3704c60d3a43ca2ba855190dc2fa (diff)
Use stock-missing when there is no activity icon
Diffstat (limited to 'shell')
-rw-r--r--shell/frame/BottomPanel.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/shell/frame/BottomPanel.py b/shell/frame/BottomPanel.py
index 620263f..88d5a64 100644
--- a/shell/frame/BottomPanel.py
+++ b/shell/frame/BottomPanel.py
@@ -12,9 +12,6 @@ from sugar.canvas.GridBox import GridBox
class ActivityItem(IconItem):
def __init__(self, activity):
icon_name = activity.get_icon()
- if not icon_name:
- act_type = activity.get_type()
- raise RuntimeError("Activity %s did not have an icon!" % act_type)
IconItem.__init__(self, icon_name=icon_name, color=IconColor('white'))
self._activity = activity
@@ -59,12 +56,6 @@ class BottomPanel(GridBox):
self.add_invite(invite)
def add_activity(self, activity):
- # Need an icon to show up on the bar
- if not activity.get_icon():
- name = activity.get_name()
- logging.info("Activity %s did not have an icon. Won't show it." % name)
- return
-
item = ActivityItem(activity)
item.connect('clicked', self.__activity_clicked_cb)
self.add_child(item)