~evfool/software-center/lp934414

« back to all changes in this revision

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

  • Committer: Michael Vogt
  • Date: 2012-10-05 06:57:27 UTC
  • mfrom: (3211.2.6 software-center)
  • Revision ID: michael.vogt@ubuntu.com-20121005065727-8jlnf38pp2lny32t
merged lp:~gary-lasker/software-center/lp1041004 (without the test as the test in fix-size-calc-race tests for the real crash source already)

Show diffs side-by-side

added added

removed removed

Lines of Context:
810
810
        self.distro = distro
811
811
        self.icons = icons
812
812
        self.cache = cache
 
813
        # app specific data
 
814
        self.app = None
 
815
        self.app_details = None
 
816
        self.pkg_state = None
813
817
        self.cache.connect("query-total-size-on-install-done",
814
818
                           self._on_query_total_size_on_install_done)
815
819
        self.backend = get_install_backend()
836
840
        self.set_name("view")
837
841
 
838
842
        self.section = None
839
 
        # app specific data
840
 
        self.app = None
841
 
        self.app_details = None
842
 
        self.pkg_state = None
843
 
 
844
843
        self.reviews = UIReviewsList(self)
845
844
 
846
845
        self.adjustment_value = None
2033
2032
            install_size = GLib.format_size(total_install_size)
2034
2033
            label_string += _("%s when installed") % (install_size)
2035
2034
        elif (total_install_size == 0 and
 
2035
              self.app_details and
2036
2036
              self.app_details.pkg_state == PkgStates.INSTALLED and
2037
2037
              not self.addons_manager.addons_to_install and
2038
2038
              not self.addons_manager.addons_to_remove):