~evfool/software-properties/lintianfixes

« back to all changes in this revision

Viewing changes to softwareproperties/gtk/DialogCacheOutdated.py

  • Committer: Martin Pitt
  • Date: 2011-08-17 05:19:00 UTC
  • Revision ID: martin.pitt@canonical.com-20110817051900-qiqeltkov746yyy8
Move from static gobject to GI GObject module, to be compatible to
upcoming pygobject 3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import os
24
24
import subprocess
25
 
import gobject
26
 
from gi.repository import Gtk
 
25
from gi.repository import GObject, Gtk
27
26
 
28
27
import aptdaemon.client
29
28
import aptdaemon.enums
71
70
        res = self.dialog.run()
72
71
        self.dialog.hide()
73
72
        if res == Gtk.ResponseType.APPLY:
74
 
            self.loop = gobject.MainLoop()
 
73
            self.loop = GObject.MainLoop()
75
74
 
76
75
            ac = aptdaemon.client.AptClient()
77
76
            ac.update_cache(reply_handler=self._run_transaction,