Ticket #1701: activity_version_shell.patch

File activity_version_shell.patch, 1.1 KB (added by erikos, 14 years ago)

patch for sugar

  • src/jarabe/desktop/activitieslist.py

    diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py
    index 87f2af0..8cf3864 100644
    a b class ListModel(gtk.TreeModelSort): 
    172172    COLUMN_DATE_TEXT = 7
    173173
    174174    def __init__(self):
    175         self._model = gtk.ListStore(str, bool, str, str, int, str, int, str)
     175        self._model = gtk.ListStore(str, bool, str, str, float, str, int, str)
    176176        self._model_filter = self._model.filter_new()
    177177        gtk.TreeModelSort.__init__(self, self._model_filter)
    178178
  • src/jarabe/model/bundleregistry.py

    diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
    index 60b2ab9..eed9aea 100644
    a b class BundleRegistry(gobject.GObject): 
    102102        """
    103103        if ' ' in bundle_id:
    104104            raise ValueError('bundle_id cannot contain spaces')
    105         return '%s %s' % (bundle_id, version)
     105        return '%s %s' % (bundle_id, float(version))
    106106
    107107    def _load_favorites(self):
    108108        favorites_path = env.get_profile_path('favorite_activities')