summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-29 20:37:22 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-29 20:37:22 +0000
commitb569c69f5759188e674e4808a52b7d2dd633306e (patch)
treecfe70d19e970dc39d6cdcf3015d228b79ca6685c /examples
parent3f3d2975a8c534b8da79c4f25564a5ffffed8c67 (diff)
downloadpygobject-b569c69f5759188e674e4808a52b7d2dd633306e.tar.gz
pygobject-b569c69f5759188e674e4808a52b7d2dd633306e.tar.xz
pygobject-b569c69f5759188e674e4808a52b7d2dd633306e.zip
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.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):