~kelemeng/software-center/bug625859

« back to all changes in this revision

Viewing changes to softwarecenter/view/availablepane.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt, Michael Vogt, Matthew McGowan, Gary Lasker
  • Date: 2010-04-15 01:25:12 UTC
  • Revision ID: james.westby@ubuntu.com-20100415012512-exceu7ywavdau03e
Tags: 2.0
[ Michael Vogt ]
* softwarecenter/view/channelpane.py:
  - fix crash when gdk window is not (yet) available (LP: #560320)
* softwarecenter/view/appdetailsview.py, 
  softwarecenter/distro/__init__.py,
  softwarecenter/distro/Ubuntu.py:
  - do not show "Free" for packages from the partner repository, we 
    don't know the status of the freeness there (LP: #552830)
* merged lp:~vish.../software-center/avoidmonochromeicon, many thanks
* re-enable action button if confirm dialog got canceled (LP: #562810)
* merged lp:~zkrynicki/software-center/improve-html, many thanks
  (final bits for LP: #455320), add simple test

[ Matthew McGowan ]
* softwarecenter/view/availablepane.py:
  - ensure we have a model before sending changed signal (LP: #560967)
* softwarecenter/view/dialogs.py:
  - ensure image size does not grow out of proportion (LP: #560021)
* softwarecenter/view/appview.py:
  - make rows more dynamic (LP: #557798)
* softwarecenter/view/widgets/pathbar_gtk_atk.py:
  - fix resizing bugs in style-set events

[ Gary Lasker ]
* softwarecenter/view/navhistory.py:
  - clear forward navigation history items from the
    stack on an direct navigation, fixes regression
    (LP: #563128) 
* softwarecenter/view/channelpane.py:
  - ensure we have a model before sending app-list-changed
    signal (LP: #560716)

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
        seq_nr = self.refresh_seq_nr
208
208
        if self.app_view.window:
209
209
            self.app_view.window.set_cursor(self.busy_cursor)
 
210
        if self.subcategories_view.window:
210
211
            self.subcategories_view.window.set_cursor(self.busy_cursor)
 
212
        if self.apps_vbox.window:
211
213
            self.apps_vbox.window.set_cursor(self.busy_cursor)
212
214
        new_model = AppStore(self.cache,
213
215
                             self.db,
229
231
        self.emit("app-list-changed", len(new_model))
230
232
        if self.app_view.window:
231
233
            self.app_view.window.set_cursor(None)
 
234
        if self.subcategories_view.window:
232
235
            self.subcategories_view.window.set_cursor(None)
 
236
        if self.apps_vbox.window:
233
237
            self.apps_vbox.window.set_cursor(None)
234
238
        return False
235
239
 
375
379
    def display_search(self):
376
380
        self.navigation_bar.remove_id(self.NAV_BUTTON_ID_DETAILS)
377
381
        self.notebook.set_current_page(self.PAGE_APPLIST)
378
 
        self.emit("app-list-changed", len(self.app_view.get_model()))
 
382
        list_length = 0
 
383
        if self.app_view.get_model():
 
384
            list_length = len(self.app_view.get_model())
 
385
        self.emit("app-list-changed", list_length)
379
386
        self.searchentry.show()
380
387
        return
381
388