~gary-lasker/software-center/fix-lp834893

« back to all changes in this revision

Viewing changes to softwarecenter/view/softwarepane.py

  • Committer: Michael Vogt
  • Date: 2010-02-01 14:28:28 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100201142828-xow73qiczvl14qco
softwarecenter/view/availablepane.py, softwarecenter/view/softwarepane.py: do a re-draw in the available pane on cache refresh, keep the installed-pane behavior (rebuild view) the same as before

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
 
124
124
    def on_cache_ready(self, cache):
125
125
        " refresh the application list when the cache is re-opened "
126
 
        # just re-draw, nothing but the "is-installed" overlay will
127
 
        # change when something is installed or removed in the available
128
 
        # pane
129
 
        self.app_view.queue_draw()
 
126
        # FIXME: preserve selection too
 
127
        # get previous vadjustment and reapply it
 
128
        vadj = self.scroll_app_list.get_vadjustment()
 
129
        self.refresh_apps()
 
130
        # needed otherwise we jump back to the beginning of the table
 
131
        if vadj:
 
132
            vadj.value_changed()
130
133
 
131
134
    def on_application_activated(self, appview, app):
132
135
        """callback when an app is clicked"""