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

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/panes/installedpane.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:
18
18
# this program; if not, write to the Free Software Foundation, Inc.,
19
19
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
20
 
21
 
from gi.repository import Gtk
22
21
import logging
23
22
import xapian
24
 
from gi.repository import GObject
 
23
from gi.repository import GObject, GLib, Gtk
25
24
 
26
25
from gettext import gettext as _
27
26
from gettext import ngettext
57
56
        if self._build_in_progress:
58
57
            LOG.debug('Waiting for build to exit...')
59
58
            self._halt_build = True
60
 
            GObject.timeout_add(200, lambda: wrapper(*args, **kwargs))
 
59
            GLib.timeout_add(200, lambda: wrapper(*args, **kwargs))
61
60
            return False
62
61
        # ready now
63
62
        self._halt_build = False
457
456
            self.emit("app-list-changed", i)
458
457
            return
459
458
 
460
 
        GObject.idle_add(profiled_rebuild_categorised_view)
 
459
        GLib.idle_add(profiled_rebuild_categorised_view)
461
460
 
462
461
    def _build_oneconfview(self, keep_state=False):
463
462
        LOG.debug('Rebuilding oneconfview for %s...' % self.current_hostid)
572
571
            self.emit("app-list-changed", i)
573
572
            return
574
573
 
575
 
        GObject.idle_add(profiled_rebuild_oneconfview)
 
574
        GLib.idle_add(profiled_rebuild_oneconfview)
576
575
 
577
576
    def _check_expand(self):
578
577
        it = self.treefilter.get_iter_first()