~mvo/software-center/apptreeview-tweaks

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/views/catview_gtk.py

  • Committer: Michael Vogt
  • Date: 2012-03-08 13:58:30 UTC
  • mfrom: (2782.1.40 trunk)
  • Revision ID: michael.vogt@ubuntu.com-20120308135830-e5wkjjn1h1kdozms
mergedĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
        self.departments = None
227
227
        self.appcount = None
228
228
 
229
 
        # this means that the departments don't jump down once the cache loads
230
 
        # it doesn't look odd if the recommends are never loaded
231
 
        #~ self.recommended = Gtk.Label()
232
 
        #~ self.vbox.pack_start(self.recommended, False, False, 0)
 
229
        # ensure that on db-reopen we refresh the whats-new titles
 
230
        self.db.connect("reopen", self._on_db_reopen)
233
231
 
234
232
        self.build(desktopdir)
235
233
        return
236
234
 
 
235
    def _on_db_reopen(self, db):
 
236
        self._update_whats_new_content()
 
237
 
237
238
    def _build_homepage_view(self):
238
239
        # these methods add sections to the page
239
240
        # changing order of methods changes order that they appear in the page