Fix native applications handling

This commit is contained in:
Marco Pesenti Gritti
2007-10-14 00:25:53 +02:00
parent e39232a622
commit 29bc0a8a20
4 changed files with 20 additions and 7 deletions
+6 -3
View File
@@ -96,14 +96,17 @@ class HomeActivity(gobject.GObject):
def get_title(self):
"""Retrieve the application's root window's suggested title"""
return self._window.get_name()
if self._window:
return self._window.get_name()
else:
return ''
def get_icon_name(self):
def get_icon_path(self):
"""Retrieve the activity's icon (file) name"""
if self._activity_info:
return self._activity_info.icon
else:
return 'image-missing'
return None
def get_icon_color(self):
"""Retrieve the appropriate icon colour for this activity