diff options
| author | Johan Dahlin <jdahlin@async.com.br> | 2008-06-17 19:57:11 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2008-06-17 19:57:11 +0000 |
| commit | de5fce1737f04bfe525caeab390b55bd46037d67 (patch) | |
| tree | f36e8cf3b9bc1c876ee402c9b18f1504a2c49b56 /gio | |
| parent | ac00f4306e17c0f6685d657b5cd183c7171f14db (diff) | |
Sort out confusion between interfaces and objects, add test. Fixes #538601
2008-06-17 Johan Dahlin <jdahlin@async.com.br>
* gio/gio-types.defs:
* tests/test_gio.py:
Sort out confusion between interfaces and objects, add test.
Fixes #538601
svn path=/trunk/; revision=788
Diffstat (limited to 'gio')
| -rw-r--r-- | gio/gio-types.defs | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/gio/gio-types.defs b/gio/gio-types.defs index fa80816..9b4b74c 100644 --- a/gio/gio-types.defs +++ b/gio/gio-types.defs @@ -14,8 +14,14 @@ (gtype-id "G_TYPE_ASYNC_RESULT") ) +(define-interface Drive + (in-module "gio") + (c-name "GDrive") + (gtype-id "G_TYPE_DRIVE") +) + (define-interface File - (docstring + (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" @@ -36,14 +42,7 @@ (gtype-id "G_TYPE_ICON") ) -(define-object ThemedIcon - (in-module "gio") - (c-name "GThemedIcon") - (gtype-id "G_TYPE_THEMED_ICON") - (implements "GIcon") -) - -(define-object LoadableIcon +(define-interface LoadableIcon (in-module "gio") (c-name "GLoadableIcon") (gtype-id "G_TYPE_LOADABLE_ICON") @@ -84,12 +83,6 @@ (gtype-id "G_TYPE_CANCELLABLE") ) -(define-object Drive - (in-module "gio") - (c-name "GDrive") - (gtype-id "G_TYPE_DRIVE") -) - (define-object FileEnumerator (in-module "gio") (parent "GObject") @@ -199,7 +192,7 @@ (in-module "gio") (parent "GObject") (c-name "GSimpleAsyncResult") - (gtype-id "G_TYPE_SIMPLE_ASYNC_RESULT") + (gtype-id "G_TYPE_SIMPLE_ASYNC_RESULT") ) (define-object Vfs @@ -223,6 +216,14 @@ (gtype-id "G_TYPE_NATIVE_VOLUME_MONITOR") ) +(define-object ThemedIcon + (in-module "gio") + (parent "GObject") + (c-name "GThemedIcon") + (gtype-id "G_TYPE_THEMED_ICON") + (implements "GIcon") +) + ;; Enumerations and flags ... (define-flags AppInfoCreateFlags |
