From 5e5f64a97de1c1498c7a505a5adb8b83c8474c0a Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 23 Aug 2016 20:54:55 +0300 Subject: examples: use proper import in update-file-info-async.py --- examples/update-file-info-async.py | 4 ++-- 1 file 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): -- cgit v1.2.1