diff options
author | Marco 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) |
commit | cd3efeba492f934c976503c1d1697a3c7ac4856b (patch) | |
tree | ef81ea69ea0d98e79fc56e927188279255d7317b /shell/model/homeactivity.py | |
parent | b1a62c2fc09e7ea35b06e2e46ffabb3ba53f572e (diff) |
Fix raw X windows
Diffstat (limited to 'shell/model/homeactivity.py')
-rw-r--r-- | shell/model/homeactivity.py | 7 |
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""" |