summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/gio/downloader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gio/downloader.py b/examples/gio/downloader.py
index 9c41525..f04a0e4 100644
--- a/examples/gio/downloader.py
+++ b/examples/gio/downloader.py
@@ -37,8 +37,8 @@ class Downloader(object):
print 'ERROR: %s' % (e.message,)
self.stop()
return
- info = gfile.query_info('standard::size')
- self.total = info.get_attribute_uint64('standard::size')
+ info = gfile.query_info(gio.FILE_ATTRIBUTE_STANDARD_SIZE)
+ self.total = info.get_attribute_uint64(gio.FILE_ATTRIBUTE_STANDARD_SIZE)
stream.read_async(4096, self.stream_read_callback)
def data_read(self, data):