~mmcg069/software-center/low-intensity-icon-loading

« back to all changes in this revision

Viewing changes to softwarecenter/view/appview.py

  • Committer: Matthew McGowan
  • Date: 2010-10-28 16:46:33 UTC
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20101028164633-07zdwpt4lrddxa7r
moveĀ thingsĀ about

Show diffs side-by-side

added added

removed removed

Lines of Context:
1032
1032
        self.pkgname = db.get_pkgname(doc)
1033
1033
        self.summary = gobject.markup_escape_text(db.get_summary(doc))
1034
1034
        self.pixbuf = pixbuf
1035
 
        self.installed = False
1036
 
        #~ popcon = self.db.get_popcon(doc)
1037
 
        #self.pixbuf = self._load_pixbuf(db, doc, icons)
 
1035
        if app.pkgname in model.cache and model.cache[app.pkgname].is_installed:
 
1036
            self.installed = True
 
1037
        else:
 
1038
            self.installed = False
 
1039
        #~ self.popcon = self.db.get_popcon(doc)
1038
1040
        return
1039
1041
 
1040
1042
    @property
1202
1204
        if not path: return
1203
1205
 
1204
1206
        doc = model.get_value(it, 0)
1205
 
        app = ContentContainer(model.db, doc)
1206
 
 
1207
 
        #~ pkgname = app.pkgname
1208
 
        if app.pkgname in model.cache and model.cache[app.pkgname].is_installed:
1209
 
            app.installed = True
 
1207
        app = ContentContainer(model.db, model.cache, doc)
1210
1208
 
1211
1209
        if _app_icon_cache.has_key(app.pkgname):
1212
1210
            app.pixbuf = _app_icon_cache[app.pkgname]