~kelemeng/software-center/bug625859

« back to all changes in this revision

Viewing changes to softwarecenter/app.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt, Gary Lasker, Michael Vogt
  • Date: 2010-04-13 22:57:30 UTC
  • Revision ID: james.westby@ubuntu.com-20100413225730-swipvdrstx0jxn5z
Tags: 1.1.26
[ Gary Lasker ]
* softwarecenter/app.py,
  softwarecenter/view/softwarepane.py:
  - correctly refresh the availablepane view on a
    change to software sources (LP: #559539)
* softwarecenter/app.py,
  softwarecenter/view/availablepane.py,
  softwarecenter/view/navhistory.py:
  - clear navigation history on a software channel refresh
    because packages in the history stack might no longer
    be available

[ Michael Vogt ]
* softwarecenter/view/appdetailsview.py:
  - fix displaying removal warning when listview interface buttons
    are used (LP: #561018)

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        self.backend.connect("transaction-started", self._on_transaction_started)
112
112
        self.backend.connect("transaction-finished", self._on_transaction_finished)
113
113
        self.backend.connect("transaction-stopped", self._on_transaction_stopped)
 
114
        self.backend.connect("channels-changed", self.on_channels_changed)
114
115
 
115
116
        # xapian
116
117
        pathname = os.path.join(xapian_base_path, "xapian")
406
407
        """ callback when an application install/remove transaction has stopped """
407
408
        self.update_app_status_menu()
408
409
 
 
410
    def on_channels_changed(self, backend, res):
 
411
        """ callback when the set of software channels has changed """
 
412
        logging.debug("on_channels_changed %s" % res)
 
413
        if res:
 
414
            self.db.open()
 
415
            # reset the navigation history because software items stored
 
416
            # in the history stack might no longer be available
 
417
            self.available_pane.reset_navigation_history()
 
418
            # refresh the available_pane views to reflect any changes
 
419
            self.available_pane.refresh_apps()
 
420
            self.available_pane.update_app_view()
 
421
            self.update_app_status_menu()
 
422
            self.update_status_bar()
 
423
 
409
424
    # helper
410
425
 
411
426
    def run_update_cache(self):