~and471/software-center/fix-524289

« back to all changes in this revision

Viewing changes to softwarecenter/view/appdetailsview_gtk.py

merged from  lp:~kiwinote/software-center/getting-the-small-things-right and add regression test

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
            self.fill_color = COLOR_RED_FILL
194
194
            self.line_color = COLOR_RED_OUTLINE
195
195
        elif state == PKG_STATE_NEEDS_SOURCE:
196
 
            channelfile = self.appdetails.channelfile
 
196
            channelfile = self.app_details.channelfile
197
197
            # it has a price and is not available 
198
198
            if channelfile:
199
199
                # FIXME: deal with the EULA stuff
200
200
                self.set_button_label(_("Use This Source"))
201
201
            # check if it comes from a non-enabled component
202
 
            elif self.appdetails._unavailable_component():
 
202
            elif self.app_details._unavailable_component():
203
203
                # FIXME: use a proper message here, but we are in string freeze
204
204
                self.set_button_label(_("Use This Source"))
205
 
            elif self.appdetails._available_for_our_arch():
 
205
            elif self.app_details._available_for_our_arch():
206
206
                self.set_button_label(_("Update Now"))
207
207
            self.fill_color = COLOR_YELLOW_FILL
208
208
            self.line_color = COLOR_YELLOW_OUTLINE