summaryrefslogtreecommitdiffstats
path: root/gio
diff options
context:
space:
mode:
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