~kiwinote/+junk/appdata-stuff

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/widgets/apptreeview.py

  • Committer: Kiwinote
  • Date: 2011-11-04 14:56:34 UTC
  • Revision ID: kiwinote@gmail.com-20111104145634-7ngw7snf8of4beam
changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
                            CellButtonIDs.ACTION)
285
285
        #if not action_btn: return False
286
286
 
287
 
        if app.installed:
 
287
        if app.state == 'installed':
288
288
            action_btn.set_variant(self.VARIANT_REMOVE)
289
289
            action_btn.set_sensitive(True)
290
290
            action_btn.show()
291
 
        elif app.available:
 
291
        elif not app.price:
292
292
            action_btn.set_variant(self.VARIANT_INSTALL)
293
293
            action_btn.set_sensitive(True)
294
294
            action_btn.show()