summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-08-23 20:54:55 +0300
committermonsta <[email protected]>2016-08-23 20:54:55 +0300
commit5e5f64a97de1c1498c7a505a5adb8b83c8474c0a (patch)
tree1623f9096910a36ed495c6a3cb063d59659e3b5c /examples
parentf9d3f97c99920506dca720f512687b8517aeaa24 (diff)
downloadpython-caja-5e5f64a97de1c1498c7a505a5adb8b83c8474c0a.tar.bz2
python-caja-5e5f64a97de1c1498c7a505a5adb8b83c8474c0a.tar.xz
examples: use proper import in update-file-info-async.py
Diffstat (limited to 'examples')
-rw-r--r--examples/update-file-info-async.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/update-file-info-async.py b/examples/update-file-info-async.py
index e4f90c7..8da2235 100644
--- a/examples/update-file-info-async.py
+++ b/examples/update-file-info-async.py
@@ -1,4 +1,4 @@
-from gi.repository import Caja, GObject
+from gi.repository import Caja, GObject, GLib
class UpdateFileInfoAsync(GObject.GObject, Caja.InfoProvider):
def __init__(self):
@@ -6,7 +6,7 @@ class UpdateFileInfoAsync(GObject.GObject, Caja.InfoProvider):
def update_file_info_full(self, provider, handle, closure, file):
print "update_file_info_full"
- gobject.timeout_add_seconds(3, self.update_cb, provider, handle, closure)
+ GLib.timeout_add_seconds(3, self.update_cb, provider, handle, closure)
return Caja.OperationResult.IN_PROGRESS
def update_cb(self, provider, handle, closure):