~ubuntu-branches/ubuntu/vivid/software-center/vivid

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/panes/availablepane.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt, kiwinote, Paolo Rotolo, Gary Lasker, Michael Vogt, Dave Morley
  • Date: 2012-03-26 19:02:24 UTC
  • Revision ID: package-import@ubuntu.com-20120326190224-qhmxquqfyfvuosbr
Tags: 5.1.13.2
[ kiwinote ]
* looks like the latest gtk causes us to receive less style-updated
  signals, call init_sc_css_provider explicitly so we don't loose our
  custom theming (LP: #961102)

[ Paolo Rotolo ]
* data/ui/gtk3/SoftwareCenter.ui:
   - fix string from "Terms of Service" to "Terms of Use" (LP: #963309).

[ Gary Lasker ]
* lp:~gary-lasker/software-center/tos-urls-lp961538:
  - use a different url for the inline ToS dialog (LP: #961538)
* lp:~gary-lasker/software-center/fix-crash-lp960742:
  - do not crash if file can not be unlinked (LP: #960742)
* lp:~gary-lasker/software-center/tos_buy_button_fix_lp961216:
  - This branch fixes bug LP: #961216, where the "Buy" button on the
    details page and listview stays insensitive after declining the
    ToS dialog
* lp:~gary-lasker/software-center/fix-crash-lp961198:
  - make recommendations menu available once the available pane is
    ready (LP: #961198)

[ Michael Vogt ]
* lp:~mvo/software-center/builder_get_cleanup:
  - cleaner way to get menuitems
* lp:~mvo/software-center/lp-955346:
  - draw stars with 1px border to get crisper stars (LP: #955346)
* lp:~mvo/software-center/fix-purchase-accept-crash:
  - fixes crash when accepting tos on system without s-c config file
* lp:~mvo/software-center/lp962927:
  - fix race condition on creating cache dir (LP: #962927)
* lp:~mvo/software-center/lp964918:
  - do not raise an exception in the case of multiple origins,
    instead log a warning and do the right thing in the UI
    (LP: #964918)

[ Dave Morley ]
* lp:~davmor2/software-center/lp965222:
  - add ldtp based statup time helper

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
            self.on_purchase_failed)
150
150
        self.purchase_view.connect("purchase-cancelled-by-user",
151
151
            self.on_purchase_cancelled_by_user)
 
152
        self.purchase_view.connect("terms-of-service-declined",
 
153
            self.on_terms_of_service_declined)
152
154
        self.purchase_view.connect("purchase-needs-spinner",
153
155
            self.on_purchase_needs_spinner)
154
156
 
260
262
    def on_purchase_cancelled_by_user(self, widget):
261
263
        self._return_to_appdetails_view()
262
264
 
 
265
    def on_terms_of_service_declined(self, widget):
 
266
        """ The Terms of Service dialog was declined by the user, so we just
 
267
            reset the purchase button in case they want another chance
 
268
        """
 
269
        if self.is_app_details_view_showing():
 
270
            self.app_details_view.pkg_statusbar.button.set_sensitive(True)
 
271
        elif self.is_applist_view_showing():
 
272
            self.app_view.tree_view.reset_action_button()
 
273
 
263
274
    def _return_to_appdetails_view(self):
264
275
        vm = get_viewmanager()
265
276
        vm.nav_back()