From b569c69f5759188e674e4808a52b7d2dd633306e Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Tue, 29 Jul 2008 20:37:22 +0000 Subject: Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them. 2008-07-29 Johan Dahlin * examples/gio/downloader.py: * gio/giomodule.c (init_gio): Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them. svn path=/trunk/; revision=897 --- examples/gio/downloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/gio') 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): -- cgit