summaryrefslogtreecommitdiffstats
path: root/gio/gio-types.defs
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-04-07 12:37:27 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-04-07 12:37:27 +0000
commit98f1db3549f7dc056f892ceec3e81d9ee7285ce1 (patch)
treeef9d5510bd72f7a7a0e8c1c70247278dbd566550 /gio/gio-types.defs
parent901eeaf675aece3c2ba199a1532dbe07d80b51c5 (diff)
downloadpygobject-98f1db3549f7dc056f892ceec3e81d9ee7285ce1.tar.gz
pygobject-98f1db3549f7dc056f892ceec3e81d9ee7285ce1.tar.xz
pygobject-98f1db3549f7dc056f892ceec3e81d9ee7285ce1.zip
Make gio.File() (calling on an interface) a factory for creating files.
2008-04-07 Johan Dahlin <johan@gnome.org> * gio/__init__.py: * gio/gfile.override: * gio/gio-types.defs: * gio/gio.override: * tests/test_gio.py: Make gio.File() (calling on an interface) a factory for creating files. Add tests and a docstring. svn path=/trunk/; revision=764
Diffstat (limited to 'gio/gio-types.defs')
-rw-r--r--gio/gio-types.defs10
1 files changed, 10 insertions, 0 deletions
diff --git a/gio/gio-types.defs b/gio/gio-types.defs
index bb43ba3..cf3a2f2 100644
--- a/gio/gio-types.defs
+++ b/gio/gio-types.defs
@@ -15,6 +15,16 @@
)
(define-interface File
+ (docstring
+"File(arg, path=None, uri=None) -> gio.File subclass\n"
+"\n"
+"If arg is specified; creates a GFile with the given argument from the\n"
+"command line. The value of arg can be either a URI, an absolute path\n"
+"or a relative path resolved relative to the current working directory.\n"
+"If path is specified, create a file from an absolute or relative path.\n"
+"If uri is specified, create a file from a URI.\n\n"
+"This operation never fails, but the returned object might not \n"
+"support any I/O operation if arg points to a malformed path.")
(in-module "gio")
(c-name "GFile")
(gtype-id "G_TYPE_FILE")