[libsecret] mock: Port to modern pygobject API
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsecret] mock: Port to modern pygobject API
- Date: Sun, 14 Feb 2016 17:00:12 +0000 (UTC)
commit be5f98bbdb4f1103282c0be3e39add428ecab1a6
Author: Dmitry Shachnev <mitya57 gmail com>
Date: Wed Feb 10 14:30:41 2016 +0300
mock: Port to modern pygobject API
https://bugzilla.gnome.org/show_bug.cgi?id=761834
libsecret/mock/service.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libsecret/mock/service.py b/libsecret/mock/service.py
index d8f7e66..f75ef43 100644
--- a/libsecret/mock/service.py
+++ b/libsecret/mock/service.py
@@ -24,7 +24,7 @@ import hkdf
import dbus
import dbus.service
import dbus.glib
-import gobject
+from gi.repository import GLib
COLLECTION_PREFIX = "/org/freedesktop/secrets/collection/"
@@ -146,7 +146,7 @@ class SecretPrompt(dbus.service.Object):
def Prompt(self, window_id):
if self.action:
self.result = self.action()
- gobject.timeout_add(self.delay * 1000, self._complete)
+ GLib.timeout_add(self.delay * 1000, self._complete)
@dbus.service.method('org.freedesktop.Secret.Prompt')
def Dismiss(self):
@@ -525,7 +525,7 @@ class SecretService(dbus.service.Object):
self.set_alias('session', collection)
def listen(self):
- loop = gobject.MainLoop()
+ loop = GLib.MainLoop()
name = self.bus.get_unique_name()
if not name:
raise NameError("No unique name available")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]