>From dc9ce43ae9f42be9690de0f8d7abe2f3d6c2c3fe Mon Sep 17 00:00:00 2001 From: Michael 'Mickey' Lauer Date: Wed, 11 Mar 2009 11:32:54 +0100 Subject: [PATCH] glib-2.0.vapi: Add constructor for class Dir. g_dir_open() is the only valid way to obtain a new Dir structure. Without this patch, the following (legal to valac) program would compile with valac, but not with gcc: var dir = Dir(); Signed-off-by: Michael 'Mickey' Lauer --- vapi/glib-2.0.vapi | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 66493fa..5ca21a7 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2371,7 +2371,8 @@ namespace GLib { [Compact] [CCode (free_function = "g_dir_close")] public class Dir { - public static Dir open (string filename, uint _flags = 0) throws FileError; + [CCode (cname = "g_dir_open")] + public Dir (string filename, uint _flags = 0) throws FileError; public weak string read_name (); public void rewind (); } -- 1.5.6.3