summaryrefslogtreecommitdiff
path: root/examples/update-file-info-async.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/update-file-info-async.py')
-rw-r--r--examples/update-file-info-async.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/update-file-info-async.py b/examples/update-file-info-async.py
index 8da2235..e0dd3b3 100644
--- a/examples/update-file-info-async.py
+++ b/examples/update-file-info-async.py
@@ -5,10 +5,13 @@ class UpdateFileInfoAsync(GObject.GObject, Caja.InfoProvider):
pass
def update_file_info_full(self, provider, handle, closure, file):
- print "update_file_info_full"
+ print('update_file_info_full')
GLib.timeout_add_seconds(3, self.update_cb, provider, handle, closure)
return Caja.OperationResult.IN_PROGRESS
def update_cb(self, provider, handle, closure):
- print "update_cb"
+ print('update_cb')
Caja.info_provider_update_complete_invoke(closure, provider, handle, Caja.OperationResult.FAILED)
+
+ def cancel_update(self, provider, handle):
+ print('cancel_update')