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

« back to all changes in this revision

Viewing changes to softwarecenter/backend/oneconfhandler/core.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:
25
25
from softwarecenter.enums import SOFTWARE_CENTER_NAME_KEYRING
26
26
 
27
27
import datetime
28
 
from gi.repository import GObject
 
28
from gi.repository import GObject, GLib
29
29
import logging
30
30
 
31
31
from gettext import gettext as _
39
39
        "show-oneconf-changed": (GObject.SIGNAL_RUN_LAST,
40
40
                                 GObject.TYPE_NONE,
41
41
                                 (GObject.TYPE_PYOBJECT,),
42
 
                                ),
 
42
                                 ),
43
43
        "last-time-sync-changed": (GObject.SIGNAL_RUN_LAST,
44
44
                                   GObject.TYPE_NONE,
45
45
                                   (GObject.TYPE_PYOBJECT,),
46
 
                                  ),
47
 
        }
 
46
                                   ),
 
47
    }
48
48
 
49
49
    def __init__(self, oneconfviewpickler):
50
50
        '''Controller of the installed pane'''
67
67
 
68
68
        # refresh host list
69
69
        self._refreshing_hosts = False
70
 
        GObject.timeout_add_seconds(MIN_TIME_WITHOUT_ACTIVITY,
 
70
        GLib.timeout_add_seconds(MIN_TIME_WITHOUT_ACTIVITY,
71
71
            self.get_latest_oneconf_sync)
72
 
        GObject.idle_add(self.refresh_hosts)
 
72
        GLib.idle_add(self.refresh_hosts)
73
73
 
74
74
    def refresh_hosts(self):
75
75
        """refresh hosts list in the panel view"""