summaryrefslogtreecommitdiffstats
path: root/gio
diff options
context:
space:
mode:
authorPaul Pogonyshev <pogonyshev@gmx.net>2008-08-09 15:09:42 +0000
committerPaul Pogonyshev <paulp@src.gnome.org>2008-08-09 15:09:42 +0000
commit38848aaa4ffecf6cccf576df496d41f4ce984579 (patch)
tree6b7ae2b9ec6154fadf1319edd023bf70f3d7ed0f /gio
parent2a778d5bc55e812d549c02266d42b3f454627bd5 (diff)
downloadpygobject-38848aaa4ffecf6cccf576df496d41f4ce984579.tar.gz
pygobject-38848aaa4ffecf6cccf576df496d41f4ce984579.tar.xz
pygobject-38848aaa4ffecf6cccf576df496d41f4ce984579.zip
Bug 546135 – GIcon and implementations improvements
2008-08-09 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546135 – GIcon and implementations improvements * gio/gio.defs (g_file_icon_new): Change from method of gio.File to constructor of gio.FileIcon. * tests/test_gicon.py (TestIcon.test_eq, Test_Eq.test_hash) (TestLoadableIcon.setUp): Adapt accordingly. (TestFileIcon): New test case. svn path=/trunk/; revision=933
Diffstat (limited to 'gio')
-rw-r--r--gio/gio.defs10
1 files changed, 8 insertions, 2 deletions
diff --git a/gio/gio.defs b/gio/gio.defs
index 0396d65..c083ff3 100644
--- a/gio/gio.defs
+++ b/gio/gio.defs
@@ -2314,10 +2314,16 @@
(return-type "GType")
)
-(define-method icon_new
- (of-object "GFile")
+(define-function file_icon_new
(c-name "g_file_icon_new")
+ (is-constructor-of "GFileIcon")
(return-type "GIcon*")
+ ;; Note: starting with GLib 2.18 we could use (properties ...)
+ ;; instead, but I don't know if it is possible to branch on version
+ ;; in codegen.
+ (parameters
+ '("GFile*" "file")
+ )
)
(define-method get_file