Move timestamp_to_elapsed_string to sugar.util and add ActivityBundle.installation_time

This commit is contained in:
Tomeu Vizoso
2008-05-19 18:03:04 +02:00
parent 6c024ed529
commit 708a62c06f
3 changed files with 79 additions and 3 deletions
+5 -3
View File
@@ -31,11 +31,12 @@ def _activity_info_from_dict(info_dict):
return ActivityInfo(info_dict['name'], info_dict['icon'],
info_dict['bundle_id'], info_dict['version'],
info_dict['path'], info_dict['show_launcher'],
info_dict['command'], info_dict['favorite'])
info_dict['command'], info_dict['favorite'],
info_dict['installation_time'])
class ActivityInfo(object):
def __init__(self, name, icon, bundle_id, version,
path, show_launcher, command, favorite):
def __init__(self, name, icon, bundle_id, version, path, show_launcher,
command, favorite, installation_time):
self.name = name
self.icon = icon
self.bundle_id = bundle_id
@@ -44,6 +45,7 @@ class ActivityInfo(object):
self.command = command
self.show_launcher = show_launcher
self.favorite = favorite
self.installation_time = installation_time
class ActivityRegistry(gobject.GObject):
__gsignals__ = {