~ubuntu-branches/ubuntu/raring/software-center/raring-proposed

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/panes/viewswitcher.py

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2012-12-06 17:30:50 UTC
  • Revision ID: package-import@ubuntu.com-20121206173050-n7mxi5fzlsvtdh9l
Tags: 5.5.2
* lp:~mvo/software-center/fix-pygobject-deprecation-warnings:
  - fix deprecation warninings with the latest python-gi
* lp:~mvo/software-center/minor-logging-fixes:
  - drop some LOG.info() messages to LOG.debug() to spam the user
    less
* lp:~mvo/software-center/trivial-close-ui-tweak:
  - hide the main window immediately when closing down
* lp:~mvo/software-center/5.4-fix-save-person-to-config:
  - This branch ensures that the "username" is saved everytime
    that the ubuntu sso whoami call is done
* lp:~mvo/software-center/use-dpkg-builddeps:
  - use dpkg-checkbuilddeps to find test-dependencies
* lp:~mvo/software-center/update-sc-cmdline-flexibility:
  - update-software-center-agent: 
    + add --target-db-path commandline
  - update-software-center: 
    + add --app-install-desktop-dir and --target-db-path commandline
* lp:~mvo/software-center/raring-pep8:
  - fixes for new pep8

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
19
19
 
20
 
from gi.repository import Gtk, GObject
 
20
from gi.repository import Gtk, GLib
21
21
import logging
22
22
 
23
23
from gettext import gettext as _
163
163
            return False
164
164
 
165
165
        self._prev_view = view_id
166
 
        GObject.idle_add(config_view)
 
166
        GLib.idle_add(config_view)
167
167
 
168
168
    def on_get_available_channels(self, popup):
169
169
        return self.build_channel_list(popup, ViewPages.AVAILABLE)
213
213
    def build_channel_list(self, popup, view_id):
214
214
        # clean up old signal handlers
215
215
        for sig in self._handlers:
216
 
            GObject.source_remove(sig)
 
216
            GLib.source_remove(sig)
217
217
 
218
218
        if view_id == ViewPages.AVAILABLE:
219
219
            channels = self.channel_manager.channels
276
276
            vm.display_page(pane, page, state)
277
277
            return False
278
278
 
279
 
        GObject.idle_add(config_view)
 
279
        GLib.idle_add(config_view)