Ticket #2880: 0001-Use-string-Empty-rather-than-Unknown-for-zero-size-J.patch

File 0001-Use-string-Empty-rather-than-Unknown-for-zero-size-J.patch, 907 bytes (added by garycmartin, 10 years ago)
  • src/jarabe/journal/listmodel.py

    From 2241359dce9799b40a6fe54e3f310d3ac50eb7cf Mon Sep 17 00:00:00 2001
    From: Gary Martin <gary@garycmartin.com>
    Date: Fri, 3 Jun 2011 19:46:05 +0100
    Subject: [PATCH 1/1] Use string Empty rather than Unknown for zero size Journal list view objects.
    
    ---
     src/jarabe/journal/listmodel.py |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/src/jarabe/journal/listmodel.py b/src/jarabe/journal/listmodel.py
    index 3902eba..1762d34 100644
    a b class ListModel(gtk.GenericTreeModel, gtk.TreeDragSource): 
    163163        try:
    164164            size = int(metadata.get('filesize'))
    165165        except (TypeError, ValueError):
    166             self._cached_row.append(_('Unknown'))
     166            self._cached_row.append(_('Empty'))
    167167        else:
    168168            self._cached_row.append(util.format_size(size))
    169169