Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/model/homeactivity.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-06-01 12:04:54 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-06-01 12:04:54 (GMT)
commitcd3efeba492f934c976503c1d1697a3c7ac4856b (patch)
treeef81ea69ea0d98e79fc56e927188279255d7317b /shell/model/homeactivity.py
parentb1a62c2fc09e7ea35b06e2e46ffabb3ba53f572e (diff)
Fix raw X windows
Diffstat (limited to 'shell/model/homeactivity.py')
-rw-r--r--shell/model/homeactivity.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/model/homeactivity.py b/shell/model/homeactivity.py
index ad42310..c22e8be 100644
--- a/shell/model/homeactivity.py
+++ b/shell/model/homeactivity.py
@@ -91,7 +91,7 @@ class HomeActivity(gobject.GObject):
if self._bundle:
return self._bundle.get_icon()
else:
- return None
+ return 'theme:stock-missing'
def get_icon_color(self):
"""Retrieve the appropriate icon colour for this activity
@@ -137,7 +137,10 @@ class HomeActivity(gobject.GObject):
def get_type(self):
"""Retrieve bundle's "service_name" for future reference"""
- return self._bundle.get_service_name()
+ if self._bundle:
+ return self._bundle.get_service_name()
+ else:
+ return None
def get_shared(self):
"""Return whether this activity is using Presence service sharing"""