blob: 349b1693d3c51ba922feaa4cba887f881b93ffd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import caja
import gobject
class UpdateFileInfoAsync(caja.InfoProvider):
def __init__(self):
pass
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)
return caja.OPERATION_IN_PROGRESS
def update_cb(self, provider, handle, closure):
print "update_cb"
self.update_complete_invoke(provider, handle, closure, result=caja.OPERATION_FAILED)
|