~ubuntu-branches/ubuntu/trusty/software-center/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2012-12-18 09:30:13 UTC
  • Revision ID: package-import@ubuntu.com-20121218093013-fte692633i35ok59
Tags: 5.5.3
* lp:~mvo/software-center/pep8-e125:
  - more pep8 fixes with the rarning pep8 release (issue E125)
* lp:~mvo/software-center/support-size-from-agent:
  - Support showing the download size if the software-center-agent 
    provides it
* lp:~mvo/software-center/fix-removal-warning-metapackages:
  - Fixes a missing warning when a metapackage like "ubuntu-desktop"
    is marked for removal directly
* lp:~mvo/software-center/webapps-activation:
  - add support to activate webapps automatically on install

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
        Gtk.render_layout(context, cr, x, y, layout)
123
123
 
124
124
    def _render_price(self, context, cr, app, layout, cell_area, xpad, ypad,
125
 
        is_rtl):
 
125
                      is_rtl):
126
126
        layout.set_markup("%s" % self.model.get_display_price(app))
127
127
 
128
128
        if is_rtl:
180
180
            max_layout_width -= star_width + 6 * xpad
181
181
 
182
182
        if (self.props.isactive and
183
 
            self.model.get_transaction_progress(app) > 0):
 
183
                self.model.get_transaction_progress(app) > 0):
184
184
            action_btn = self.get_button_by_name(CellButtonIDs.ACTION)
185
185
            max_layout_width -= (xpad + action_btn.width)
186
186
 
275
275
        context.restore()
276
276
 
277
277
    def _render_buttons(self, context, cr, cell_area, layout, xpad, ypad,
278
 
        is_rtl):
 
278
                        is_rtl):
279
279
 
280
280
        # layout buttons and paint
281
281
        y = cell_area.y + cell_area.height - ypad