diff options
author | Johan Dahlin <johan@gnome.org> | 2008-07-29 20:37:22 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-29 20:37:22 +0000 |
commit | b569c69f5759188e674e4808a52b7d2dd633306e (patch) | |
tree | cfe70d19e970dc39d6cdcf3015d228b79ca6685c /examples | |
parent | 3f3d2975a8c534b8da79c4f25564a5ffffed8c67 (diff) | |
download | pygobject-b569c69f5759188e674e4808a52b7d2dd633306e.tar.gz |
Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them.
2008-07-29 Johan Dahlin <johan@gnome.org>
* 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
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gio/downloader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gio/downloader.py b/examples/gio/downloader.py index 9c41525b..f04a0e44 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): |