~gary-lasker/software-center/replace-restfulclient-with-piston-tweaks

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/views/catview_gtk.py

  • Committer: Gary Lasker
  • Date: 2012-01-04 23:25:37 UTC
  • mfrom: (2617.2.10 startup-speed2)
  • Revision ID: gary.lasker@canonical.com-20120104232537-053uxnx9a2tmzqty
merged lp:~mvo/software-center/startup-speed2, super-speedy mvo

Show diffs side-by-side

added added

removed removed

Lines of Context:
496
496
        else:
497
497
            query = xapian.Query('')
498
498
 
499
 
        enq.set_query(query,
500
 
                      limit=0,
501
 
                      nonapps_visible=NonAppVisibility.ALWAYS_VISIBLE,
502
 
                      nonblocking_load=True)
503
 
 
504
 
        length = len(enq.matches)
 
499
        length = enq.get_estimated_matches_count(query)
505
500
        text = gettext.ngettext("%(amount)s item", "%(amount)s items", length
506
501
                                ) % { 'amount' : length, }
507
502
        self.appcount.set_text(text)