~kelemeng/software-center/bug640969

« back to all changes in this revision

Viewing changes to softwarecenter/view/installedpane.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt, Gary Lasker, Michael Vogt, Kiwinote, Mohamed Amine IL Idrissi
  • Date: 2010-09-09 09:11:23 UTC
  • Revision ID: james.westby@ubuntu.com-20100909091123-domo868235pb7vuk
Tags: 2.1.17
[ Gary Lasker ]
* softwarecenter/view/purchasedialog.py:
  - make popup window a modal dialog so it works with
    metacity too (LP: #625398)
* softwarecenter/view/softwarepane.py,
  softwarecenter/view/availablepane.py,
  softwarecenter/view/channelpane.py
  softwarecenter/view/installedpane.py,
  test/test_appview.py:
  - factor show/hide nonapps functionality up to the
    SoftwarePane base class, cleanup redundant code
  - enable show/hide nonapps in the "Provided by Ubuntu"
    subitem of "Installed Software" per updated spec
    (LP: #556375) 
  - add test for show/hide nonapps
* softwarecenter/backend/channel.py:
  - small fix in debug code

[ Michael Vogt ]
* merged lp:~mpt/software-center/basic-css, improves the
  style of the purchase dialog (thanks!)
* merged lp:~mmcg069/software-center/small-fixes that fixes
  minor drawing error with the paging dot drawing outside its 
  allocated area (thanks!)
* merged lp:~mpt/software-center/help-3.0 (thanks!)
* softwarecenter/gwibber_helper.py:
  - to find out if gwibber has accounts setup, poke around in
    gconf instead of doing a dbus call. The dbus call will trigger
    a gwibber start on each s-c start

[ Kiwinote ]
* softwarecenter/view/appdetailsview_gtk.py:
  - set action_bar.pkg_state as well as local state 
    (LP: #629230, LP: #632889)
    this means that the button will always take the right action
    (testcase: click 'install', cancel auth, click 'install', auth)
  - don't show warning in pkgstatusbar while transaction is in progress,
    instead show 'installing..', 'updating..', etc
    (test case: install any deb file and watch the pkgstatusbar)
* softwarecenter/view/catview.py:
  - sort categories alphabetically (LP: #633238)
* softwarecenter/view/catview_gtk.py:
  - skip the carousel transition if we are hovering above a poster, or if
    the poster is selected (ie hold down mouse, but don't release)

[ Mohamed Amine IL Idrissi ]
* Fix bug that allowed silent removal of conflicting packages
  (LP: #554319)
* Fix missing icons in the remove alerts

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        self.loaded = False
51
51
        # UI
52
52
        self._build_ui()
 
53
        self.connect("app-list-changed", self._on_app_list_changed)
 
54
        
53
55
    def _build_ui(self):
54
56
        self.navigation_bar.set_size_request(26, -1)
55
57
        self.notebook.append_page(self.appview_notebook, gtk.Label("installed"))
97
99
        new_model = AppStore(self.cache,
98
100
                             self.db, 
99
101
                             self.icons, 
100
 
                             query, 
 
102
                             query,
 
103
                             nonapps_visible = self.nonapps_visible,
101
104
                             filter=self.apps_filter)
102
105
        self.app_view.set_model(new_model)
 
106
        self.app_view.get_model().active = True
103
107
        self.hide_appview_spinner()
104
108
        self.emit("app-list-changed", len(new_model))
105
109
        return False
138
142
            return
139
143
        self.notebook.set_current_page(self.PAGE_APP_DETAILS)
140
144
        self.searchentry.hide()
 
145
        self.action_bar.clear()
141
146
        
142
147
    def on_application_selected(self, appview, app):
143
148
        """callback when an app is selected"""
144
149
        logging.debug("on_application_selected: '%s'" % app)
145
150
        self.current_appview_selection = app
 
151
        
 
152
    def _on_app_list_changed(self, pane, length):
 
153
        """internal helper that keeps the the action bar up-to-date by
 
154
           keeping track of the app-list-changed signals
 
155
        """
 
156
        self.update_show_hide_nonapps()
146
157
 
147
158
    def display_search(self):
148
159
        self.navigation_bar.remove_id("details")
179
190
    def is_category_view_showing(self):
180
191
        # there is no category view in the installed pane
181
192
        return False
 
193
        
 
194
    def is_applist_view_showing(self):
 
195
        """Return True if we are in the applist view """
 
196
        return self.notebook.get_current_page() == self.PAGE_APPLIST
182
197
 
183
198
    def show_app(self, app):
184
199
        """ Display an application in the installed_pane """