393
393
action_text = _('removed %s') % time_text
394
394
elif action == self.UPGRADED:
395
395
action_text = _('updated %s') % time_text
396
text = ('<span color="%(color)s">%(action)s</span>' %
397
{'color': '#8A8A8A', 'action': action_text})
396
color = {'color': '#8A8A8A', 'action': action_text}
397
text = '<span color="%(color)s">%(action)s</span>' % color
398
398
cell.set_property('markup', text)
401
def get_test_window():
403
from softwarecenter.testutils import (get_test_db,
404
get_test_gtk3_viewmanager,
406
get_test_gtk3_icon_cache,
408
# needed because available pane will try to get it
409
vm = get_test_gtk3_viewmanager()
410
vm # make pyflakes happy
412
cache = get_test_pkg_info()
413
icons = get_test_gtk3_icon_cache()
415
widget = HistoryPane(cache, db, None, icons, None)
420
win.set_size_request(600, 500)
421
win.set_position(Gtk.WindowPosition.CENTER)
423
win.connect('destroy', Gtk.main_quit)
428
if __name__ == '__main__':
429
win = get_test_window()